Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2e4f521

Browse files
committed
Use ? : not if
1 parent c61ccfa commit 2e4f521

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/GitHub.InlineReviews/Glyph/GlyphMargin.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@ public void Dispose()
6363

6464
public ITextViewMargin GetTextViewMargin(string marginName)
6565
{
66-
if (marginName == this.marginName)
67-
{
68-
return this;
69-
}
70-
71-
return null;
66+
return (marginName == this.marginName) ? this : null;
7267
}
7368

7469
void OnLoaded(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)