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

Commit 25878e0

Browse files
Making sure the EnsureLoad method is not optimized away
co-authored-by: Jamie Cansdale <[email protected]>
1 parent 46c2174 commit 25878e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GitHub.VisualStudio.16/CompositionServices.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using GitHub.VisualStudio.Settings;
1515
using GitHub.VisualStudio.Views;
1616
using GitHub.VisualStudio.Views.Dialog.Clone;
17+
using Microsoft;
1718
using Microsoft.VisualStudio.Shell;
1819
using Microsoft.VisualStudio.Threading;
1920
using Rothko;
@@ -139,6 +140,7 @@ static void InitializeViewLocator(IViewViewModelFactory viewViewModelFactory)
139140
static void EnsureLoaded(Type type)
140141
{
141142
// Ensure the containing assembly has been loaded
143+
Assumes.NotNull(type);
142144
}
143145

144146
static LoginManager CreateLoginManager(CompositionContainer compositionContainer)

0 commit comments

Comments
 (0)