Skip to content

Commit de1ca5e

Browse files
committed
Polish DockerComposeLifecycleManager
1 parent 607ed86 commit de1ca5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-boot-project/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/lifecycle/DockerComposeLifecycleManager.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ void start() {
121121
if (lifecycleManagement.shouldStart() && runningServices.isEmpty()) {
122122
start.getCommand().applyTo(dockerCompose, start.getLogLevel());
123123
runningServices = dockerCompose.getRunningServices();
124-
wait = (wait != Wait.ONLY_IF_STARTED) ? wait : Wait.ALWAYS;
124+
if (wait == Wait.ONLY_IF_STARTED) {
125+
wait = Wait.ALWAYS;
126+
}
125127
if (lifecycleManagement.shouldStop()) {
126128
this.shutdownHandlers.add(() -> stop.getCommand().applyTo(dockerCompose, stop.getTimeout()));
127129
}

0 commit comments

Comments
 (0)