fix: remove unused last_modified property (#126)

main
Rémi Labeyrie 2024-05-07 20:31:21 +02:00 committed by GitHub
parent 9c5fc98a4c
commit 1e9fd63e25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 7 deletions

View File

@ -367,18 +367,11 @@ function M.list()
dir_path = session_name dir_path = session_name
end end
local f = io.popen("stat -c %x " .. session)
local last_modified = ""
if f then
last_modified = f:read()
end
table.insert(sessions, { table.insert(sessions, {
["name"] = session_name, ["name"] = session_name,
["file_path"] = session, ["file_path"] = session,
["branch"] = branch, ["branch"] = branch,
["dir_path"] = dir_path, ["dir_path"] = dir_path,
["last_modified"] = last_modified,
}) })
end end