fix(render): show commit only if it can be shown

This commit is contained in:
futsuuu 2023-04-01 21:55:56 +09:00
commit 6bac522711

View file

@ -501,8 +501,6 @@ function M:details(plugin)
end
if git.commit then
table.insert(props, { "commit", git.commit:sub(1, 7), "LazyCommit" })
else
table.insert(props, { "commit", "No commits yet" })
end
end
if Util.file_exists(plugin.dir .. "/README.md") then