diff options
author | Kim Alvefur <zash@zash.se> | 2017-11-10 05:42:32 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-11-10 05:42:32 +0100 |
commit | 1438a3884507b709cba08691d329b0cf137f4bd4 (patch) | |
tree | 9186c5db947b241b5590afab18bd6e720f95046a /util/indexedbheap.lua | |
parent | 8962abd55b75a572b0e5821f11cd3342e09b113b (diff) | |
download | prosody-1438a3884507b709cba08691d329b0cf137f4bd4.tar.gz prosody-1438a3884507b709cba08691d329b0cf137f4bd4.zip |
util: Various minor changes to please [luacheck]
Diffstat (limited to 'util/indexedbheap.lua')
-rw-r--r-- | util/indexedbheap.lua | 4 |
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; |