Skip to content

Commit

Permalink
Fixed #setEnv:value:during: on OSEnvironment to restore the old value…
Browse files Browse the repository at this point in the history
… of the variable.
  • Loading branch information
Rinzwind committed Mar 26, 2024
1 parent c54c225 commit 2ab718d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System-OSEnvironments/OSEnvironment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ OSEnvironment >> setEnv: nameString value: valueString during: aBlock [
aBlock value ] ensure: [
oldValue
ifNil: [ self removeKey: nameString ]
ifNotNil: [ self setEnv: nameString value: valueString ] ]
ifNotNil: [ self setEnv: nameString value: oldValue ] ]
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 2ab718d

Please sign in to comment.