Skip to content

Commit 3ff8ebd

Browse files
committed
chore: minor cleanup
1 parent b7591b8 commit 3ff8ebd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lua/tinygit/commands/push-pull.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ local function pushCmd(opts)
3535
local out = vim.trim((result.stdout or "") .. (result.stderr or ""))
3636
out = out:gsub("\n%s+", "\n") -- remove padding
3737
local commitRange = out:match("%x+%.%.%x+") ---@type string|nil
38-
-- force-push `+` would get md-lhighlight
39-
local ft = opts.forceWithLease and "text" or "markdown"
38+
local ft = opts.forceWithLease and "text" or "markdown" -- force-push has `+` which gets md-highlight
4039

4140
-- notify
4241
if result.code == 0 then
@@ -63,8 +62,7 @@ local function pushCmd(opts)
6362
end
6463
updateStatusline()
6564
if opts.createGitHubPr then
66-
-- deferred to ensrue GitHub has registered the PR
67-
vim.defer_fn(createGitHubPr, 1000)
65+
vim.defer_fn(createGitHubPr, 1000) -- deferred so GitHub has registered the PR
6866
end
6967
end)
7068
)

0 commit comments

Comments
 (0)