Browse Source

VSIX: use elvis

pull/2077/head
Siegfried Pammer 5 years ago
parent
commit
5eaaf61031
  1. 5
      ILSpy.AddIn/Commands/OpenCodeItemCommand.cs

5
ILSpy.AddIn/Commands/OpenCodeItemCommand.cs

@ -38,10 +38,7 @@ namespace ICSharpCode.ILSpy.AddIn.Commands
var document = owner.DTE.ActiveDocument; var document = owner.DTE.ActiveDocument;
menuItem.Visible = menuItem.Visible =
(document != null) && (document?.ProjectItem?.ContainingProject?.ConfigurationManager != null) &&
(document.ProjectItem != null) &&
(document.ProjectItem.ContainingProject != null) &&
(document.ProjectItem.ContainingProject.ConfigurationManager != null) &&
!string.IsNullOrEmpty(document.ProjectItem.ContainingProject.FileName); !string.IsNullOrEmpty(document.ProjectItem.ContainingProject.FileName);
} }
} }

Loading…
Cancel
Save