From 6bac5227111df5966fafdfbead3aa9eaea33ee74 Mon Sep 17 00:00:00 2001 From: futsuuu Date: Sat, 1 Apr 2023 21:55:56 +0900 Subject: [PATCH] fix(render): show commit only if it can be shown --- lua/lazy/view/render.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index a2af2c3..36e1f96 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -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