Skip to content

Commit

Permalink
fix another line
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicbuffalo committed Sep 14, 2024
1 parent 6ecb811 commit 73a8bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/litee/gh/pr/marshal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ local function marshal_thread_node(use_original)
line = node.thread["originalLine"]
end
local root_comment = node["children"][1]["comment"]
if root_comment["originalCommit"] ~= vim.NIL then
if root_comment["originalCommit"] ~= nil and root_comment["originalCommit"]["oid"] ~= nil then
detail = string.sub(root_comment["originalCommit"]["oid"], 1, 8)
detail = "@ " .. detail
end
Expand Down

0 comments on commit 73a8bd7

Please sign in to comment.