mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
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:
@@ -242,9 +242,6 @@ namespace SourceGit.ViewModels
|
||||
|
||||
public async Task CheckoutBranchByCommitAsync(Models.Commit commit)
|
||||
{
|
||||
if (commit == null)
|
||||
return;
|
||||
|
||||
if (commit.IsCurrentHead)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user