code_review: PR #1783

It's not necessary to check commit with `null` since the caller will make sure that the target commit exists

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-09-02 09:58:59 +08:00
parent c6d4b6f726
commit ac1239b8fc

View File

@@ -242,9 +242,6 @@ namespace SourceGit.ViewModels
public async Task CheckoutBranchByCommitAsync(Models.Commit commit)
{
if (commit == null)
return;
if (commit.IsCurrentHead)
return;