Skip to content

Commit ac1239b

Browse files
committed
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 <[email protected]>
1 parent c6d4b6f commit ac1239b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ViewModels/Histories.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,6 @@ public async Task<bool> CheckoutBranchByDecoratorAsync(Models.Decorator decorato
242242

243243
public async Task CheckoutBranchByCommitAsync(Models.Commit commit)
244244
{
245-
if (commit == null)
246-
return;
247-
248245
if (commit.IsCurrentHead)
249246
return;
250247

0 commit comments

Comments
 (0)