Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit cfe2c4b

Browse files
avodovnikTherzok
andauthored
Apply suggestions from code review
Co-Authored-By: Marius Ungureanu <[email protected]>
1 parent 2d98672 commit cfe2c4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Components/ContextMenuExtensionsMac.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ public static void ShowContextMenu (NSView parent, int x, int y, NSMenu menu, bo
139139
null, 0, 0, 0);
140140

141141
// the following lines are here to dianose & fix VSTS 1026106 - we were getting
142-
// a SigSegv from here and it is likely caused by NSEven being null, however
142+
// a SigSegv from here and it is likely caused by NSEvent being null, however
143143
// it's worth leaving Debug checks in just to be on the safe side
144144
if (tmp_event == null) {
145145
// since this is often called outside of a try/catch loop, we'll just
146146
// log an error and not throw the exception
147-
LoggingService.LogInternalError (new ArgumentNullException ("tmp_event"));
147+
LoggingService.LogInternalError (new ArgumentNullException (nameof(tmp_event)));
148148
return;
149149
}
150150

@@ -320,4 +320,4 @@ void MenuWillHighlightItem (NSMenu menu, NSMenuItem willHighlightItem)
320320
}
321321
}
322322
#endif
323-
}
323+
}

0 commit comments

Comments
 (0)