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

Commit 8884d77

Browse files
committed
Use nullable int and clean up usings
1 parent 7e738b4 commit 8884d77

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/GitHub.InlineReviews/Tags/InlineCommentTagger.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
using System;
22
using System.Collections;
33
using System.Collections.Generic;
4-
using System.ComponentModel;
54
using System.Linq;
65
using System.Reactive.Linq;
76
using System.Threading.Tasks;
87
using GitHub.Extensions;
9-
using GitHub.InlineReviews.Services;
108
using GitHub.Logging;
119
using GitHub.Models;
1210
using GitHub.Services;
13-
using GitHub.VisualStudio;
1411
using Microsoft.VisualStudio.Text;
1512
using Microsoft.VisualStudio.Text.Editor;
1613
using Microsoft.VisualStudio.Text.Tagging;
@@ -50,14 +47,7 @@ public InlineCommentTagger(
5047
this.sessionManager = sessionManager;
5148
}
5249

53-
public bool ShowMargin
54-
{
55-
get
56-
{
57-
var diff = file?.Diff;
58-
return diff != null && diff.Count > 0;
59-
}
60-
}
50+
public bool ShowMargin => file?.Diff?.Count > 0;
6151

6252
public event EventHandler<SnapshotSpanEventArgs> TagsChanged;
6353

0 commit comments

Comments
 (0)