Skip to content

Commit

Permalink
Do not add a nil valued property
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed Jan 23, 2025
1 parent 80da74a commit b69a82f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OpalCompiler-Core/OCMethodNode.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ OCMethodNode >> bcToASTCache [
{ #category : '*OpalCompiler-Core' }
OCMethodNode >> bcToASTCache: anObject [

anObject ifNil: [
^ self
removeProperty: #bcToASTCache
ifAbsent: [ "Do nothing" ] ].
self propertyAt: #bcToASTCache put: anObject.
]

Expand Down

0 comments on commit b69a82f

Please sign in to comment.