Skip to content

Commit

Permalink
Simplified conditions according to comments from code review (#11108)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlijaQ committed Jul 26, 2023
1 parent f78d1fc commit d81a054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GitUI/GitUICommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public bool StartCreateBranchDialog(IWin32Window? owner, string? branch)

public bool StartCreateBranchDialog(IWin32Window? owner = null, ObjectId? objectId = null, string? newBranchNamePrefix = null)
{
if (Module.IsBareRepository() || (objectId is not null && objectId.IsArtificial))
if (Module.IsBareRepository() || objectId?.IsArtificial is true)
{
return false;
}
Expand Down Expand Up @@ -858,7 +858,7 @@ bool Action()

public bool StartCreateTagDialog(IWin32Window? owner = null, GitRevision? revision = null)
{
if (revision is not null && revision.IsArtificial)
if (revision?.IsArtificial is true)
{
return false;
}
Expand Down

0 comments on commit d81a054

Please sign in to comment.