Skip to content

Commit

Permalink
Try using includesKey: instead of (at:) ifNil:
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernán Morales Durand committed Aug 27, 2024
1 parent 73b27a5 commit e4c6739
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
helpers
ignorePackageNotificationClass

^ (Smalltalk globals at: #MetacelloIgnorePackageLoaded)
ifNil: [ Notification ].

^ (Smalltalk globals includesKey: #MetacelloIgnorePackageLoaded)
ifTrue: [ Smalltalk at: #MetacelloIgnorePackageLoaded ]
ifFalse: [ Notification ]

0 comments on commit e4c6739

Please sign in to comment.