Skip to content

Commit

Permalink
Fixes #1861 Simplified new code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisCnockaert committed Nov 26, 2024
1 parent 2d5a2c1 commit 571ccc5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Iceberg-TipUI/IceTipOptionDialogPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,11 @@ Class {
IceTipOptionDialogPresenter >> accept [

[
self selectedType class = IceTipLocalRepositoryPanel
(self selectedType class = IceTipLocalRepositoryPanel and: [
(IceRepositoryCreator isGitRoot: self selectedType location) not ])
ifTrue: [
(IceRepositoryCreator isGitRoot: self selectedType location)
ifFalse: [
self inform: ('"{1}" git repository not found' format:
{ self selectedType location fullName }) ]
ifTrue: [
self doAccept.
self closeWindow ] ]
self inform: ('"{1}" git repository not found' format:
{ self selectedType location fullName }) ]
ifFalse: [
self doAccept.
self closeWindow ] ]
Expand Down

0 comments on commit 571ccc5

Please sign in to comment.