aboutsummaryrefslogtreecommitdiffstats
path: root/util/indexedbheap.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-10 05:42:32 +0100
committerKim Alvefur <zash@zash.se>2017-11-10 05:42:32 +0100
commit11b00845512b6af26000bd40dbf9f349f8886535 (patch)
tree9186c5db947b241b5590afab18bd6e720f95046a /util/indexedbheap.lua
parent599acace643b98ea99f64b2544591e65caa9c533 (diff)
downloadprosody-11b00845512b6af26000bd40dbf9f349f8886535.tar.gz
prosody-11b00845512b6af26000bd40dbf9f349f8886535.zip
util: Various minor changes to please [luacheck]
Diffstat (limited to 'util/indexedbheap.lua')
-rw-r--r--util/indexedbheap.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/indexedbheap.lua b/util/indexedbheap.lua
index c60861e8..7f193d54 100644
--- a/util/indexedbheap.lua
+++ b/util/indexedbheap.lua
@@ -110,7 +110,7 @@ function indexed_heap:reprioritize(id, priority)
self.priorities[k] = priority;
k = _percolate_up(self.priorities, k, self.ids, self.index);
- k = _percolate_down(self.priorities, k, self.ids, self.index);
+ _percolate_down(self.priorities, k, self.ids, self.index);
end
function indexed_heap:remove_index(k)
local result = self.priorities[k];
@@ -132,7 +132,7 @@ function indexed_heap:remove_index(k)
if size > k then
k = _percolate_up(self.priorities, k, self.ids, self.index);
- k = _percolate_down(self.priorities, k, self.ids, self.index);
+ _percolate_down(self.priorities, k, self.ids, self.index);
end
return result, item, result_sync;