Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
koendehondt committed Sep 15, 2024
1 parent 0c0d08a commit cc2b5c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Spec2-Commander2/SpCommandGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ SpCommandGroup >> asKMCategory [

{ #category : 'converting' }
SpCommandGroup >> asMenuBarPresenter [

^ SpMenuBarPresenterBuilder new
visit: self;
menuPresenter
]

{ #category : 'converting' }
SpCommandGroup >> asMenuBarPresenterWith: aBlock [
| builder |

| builder |
builder := SpMenuBarPresenterBuilder new.
aBlock value: builder menuPresenter.
^ builder
Expand All @@ -53,8 +54,8 @@ SpCommandGroup >> asMenuPresenter [

{ #category : 'converting' }
SpCommandGroup >> asMenuPresenterWith: aBlock [
| builder |

| builder |
builder := SpMenuPresenterBuilder new.
aBlock value: builder menuPresenter.
^ builder
Expand Down

0 comments on commit cc2b5c8

Please sign in to comment.