mirror of
https://github.com/docker/compose.git
synced 2025-07-26 15:14:04 +02:00
Reorganize conditional branches to improve readability
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
3313dcb1ce
commit
ba90f55075
@ -19,9 +19,12 @@ def stream_output(output, stream):
|
|||||||
if not is_progress_event:
|
if not is_progress_event:
|
||||||
print_output_event(event, stream, is_terminal)
|
print_output_event(event, stream, is_terminal)
|
||||||
stream.flush()
|
stream.flush()
|
||||||
|
continue
|
||||||
|
|
||||||
|
if not is_terminal:
|
||||||
|
continue
|
||||||
|
|
||||||
# if it's a progress event and we have a terminal, then display the progress bars
|
# if it's a progress event and we have a terminal, then display the progress bars
|
||||||
elif is_terminal:
|
|
||||||
image_id = event.get('id')
|
image_id = event.get('id')
|
||||||
if not image_id:
|
if not image_id:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user