Fix luacheck (2)

This commit is contained in:
Athozus 2023-04-05 19:11:57 +02:00
parent 80e8e106e6
commit f387992d46
No known key found for this signature in database
GPG key ID: B50895022E8484BF
3 changed files with 9 additions and 9 deletions

View file

@ -57,7 +57,7 @@ function mail.sort_messages(unsorted_messages, sortfield, sortdirection)
table.insert(messages, unsorted_messages[1])
table.remove(unsorted_messages, 1)
-- sort messages
for i, unsorted_msg in ipairs(unsorted_messages) do
for _, unsorted_msg in ipairs(unsorted_messages) do
local is_message_sorted = false
for j, sorted_msg in ipairs(messages) do
if sortfield == "1" and unsorted_msg.from >= sorted_msg.from then -- for inbox