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

Commit be83fce

Browse files
committed
🎨 The most anal of cleanup
Also disabled a R# warning so I stop seeing it since it doesn't apply.
1 parent d99b34a commit be83fce

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/GitHub.Exports/Services/GitService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using GitHub.Primitives;
55
using LibGit2Sharp;
66
using Microsoft.VisualStudio.TeamFoundation.Git.Extensibility;
7-
using GitHub.Extensions;
87

98
namespace GitHub.Services
109
{
@@ -21,7 +20,6 @@ public class GitService : IGitService
2120
public UriString GetUri(IRepository repository)
2221
{
2322
return UriString.ToUriString(GetOriginUri(repository)?.ToRepositoryUrl());
24-
2523
}
2624

2725
/// <summary>

src/GitHub.Exports/Services/Services.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static IVsWebBrowsingService GetWebBrowsingService(this IServiceProvider
5050

5151
public static IVsOutputWindow OutputWindow => GetGlobalService<SVsOutputWindow, IVsOutputWindow>();
5252

53-
static IVsOutputWindowPane outputWindowPane = null;
53+
static IVsOutputWindowPane outputWindowPane;
5454
public static IVsOutputWindowPane OutputWindowPane
5555
{
5656
get
@@ -61,7 +61,7 @@ public static IVsOutputWindowPane OutputWindowPane
6161
var uiShell = GetGlobalService<SVsUIShell, IVsUIShell>();
6262
// Get the frame of the output window
6363
var outputWindowGuid = new Guid("{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}");
64-
IVsWindowFrame outputWindowFrame = null;
64+
IVsWindowFrame outputWindowFrame;
6565
ErrorHandler.ThrowOnFailure(uiShell.FindToolWindow((uint)__VSCREATETOOLWIN.CTW_fForceCreate, ref outputWindowGuid, out outputWindowFrame));
6666
// Show the output window
6767
if (outputWindowFrame != null)
@@ -78,6 +78,7 @@ public static IVsOutputWindowPane OutputWindowPane
7878

7979
public static DTE Dte => GetGlobalService<DTE, DTE>();
8080

81+
// ReSharper disable once SuspiciousTypeConversion.Global
8182
public static DTE2 Dte2 => Dte as DTE2;
8283

8384
public static IVsActivityLog GetActivityLog(this IServiceProvider provider)

0 commit comments

Comments
 (0)