mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-14 10:21:59 -04:00
Fix luacheck (2)
This commit is contained in:
parent
80e8e106e6
commit
f387992d46
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue