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

Commit 46fe863

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

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
@@ -12,6 +12,7 @@
1212
using GitHub.Settings;
1313
using GitHub.VisualStudio.Settings;
1414
using GitHub.VisualStudio.Views.Dialog.Clone;
15+
using Microsoft;
1516
using Microsoft.VisualStudio.Shell;
1617
using Microsoft.VisualStudio.Threading;
1718
using Rothko;
@@ -128,6 +129,7 @@ static CompositionContainer CreateCompositionContainer(ExportProvider defaultExp
128129
static void EnsureLoaded(Type type)
129130
{
130131
// Ensure the containing assembly has been loaded
132+
Assumes.NotNull(type);
131133
}
132134

133135
static LoginManager CreateLoginManager(CompositionContainer compositionContainer)

0 commit comments

Comments
 (0)