Skip to content

Commit

Permalink
some simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Jul 13, 2024
1 parent fd619db commit 82cc9b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/PharoLauncher-Spec2/PhLImagesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ PhLImagesPresenter >> filter: regexMatcher [

{ #category : 'api - selection' }
PhLImagesPresenter >> hasSingleImageSelected [
^ (imageTable selectedItems size = 1) and: [ imageTable selectedItems first notNil ]
^ (imageTable selectedItems size = 1) and: [ imageTable selectedItems first isNotNil ]
]

{ #category : 'api - accessing' }
Expand Down
12 changes: 6 additions & 6 deletions src/PharoLauncher-Spec2/PharoLauncherApplication.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ PharoLauncherApplication open
"
Class {
#name : 'PharoLauncherApplication',
#superclass : 'SgaApplication',
#superclass : 'SpApplication',
#instVars : [
'imageRepository',
'templateRepository',
'imagesPresenter',
'scriptsDirectory',
'openAsWorld'
'openAsWorld',
'jobList'
],
#classVars : [
'Default',
Expand All @@ -22,9 +23,8 @@ Class {
#classInstVars : [
'pharoIcon'
],
#category : 'PharoLauncher-Spec2-Application',
#package : 'PharoLauncher-Spec2',
#tag : 'Application'
#category : 'PharoLauncher-Spec2',
#package : 'PharoLauncher-Spec2'
}

{ #category : 'accessing' }
Expand Down Expand Up @@ -158,8 +158,8 @@ PharoLauncherApplication class >> pharoIcon16x16 [
{ #category : 'class initialization' }
PharoLauncherApplication class >> reset [
<script>

Default ifNil: [ ^ self ].

Default reset.
Default := nil
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ PhLTestImagesPresenter >> createImageNamed: aString in: aPathString [

{ #category : 'api - selection' }
PhLTestImagesPresenter >> hasSingleImageSelected [
^ super hasSingleImageSelected or: [ selection notNil ]
^ super hasSingleImageSelected or: [ selection isNotNil ]
]

{ #category : 'accessing' }
Expand Down
4 changes: 1 addition & 3 deletions src/PharoLauncher-Tests-Commands/PhLTestVmPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ PhLTestVmPresenter >> newConfirmation [

{ #category : 'accessing' }
PhLTestVmPresenter >> selectedVms [
^ selection
ifNotNil: [ selection ]
ifNil: [ { self vmFor: self singleVmName } ]
^ selection ifNil: [ { self vmFor: self singleVmName } ]
]

{ #category : 'configuring' }
Expand Down

0 comments on commit 82cc9b7

Please sign in to comment.