Skip to content

Commit

Permalink
fix: don't throw on reset build server when the same option reselected
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Oct 19, 2023
1 parent da305ba commit 22efc78
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class PopupChoiceReset(
Future.successful(())
} else if (value == BuildServer) {
scribe.info("Resetting build server selection.")
(for {
for {
didChange <- bspConnector.switchBuildServer(
workspace,
slowConnect,
)
if didChange
} yield quickConnect()).ignoreValue
_ <- if (didChange) quickConnect() else Future.successful(())
} yield ()
} else {
Future.successful(())
}
Expand Down

0 comments on commit 22efc78

Please sign in to comment.