pharo-launcher
pharo-launcher copied to clipboard
simplify-conditions
Simplify conditionals
The automatic rewrite of isEmpty ifTrue: to ifEmpty:
is too simplistic.
It implies the receiver is a collection and undestands ifEmpty.
A lot of other objects can implement #isEmpty but not necessarly #ifEmpty or #ifNotEmpty.
In this PR, a lot of tests fail because of:
HTTPProgress(Object)>>doesNotUnderstand: #ifNotEmpty: