Skip to content

Commit fceb04a

Browse files
committed
restore: prettier while
1 parent a85a765 commit fceb04a

File tree

1 file changed

+1
-4
lines changed
  • src/modules/adsb-feeder/filesystem/root/opt/adsb/adsb-setup

1 file changed

+1
-4
lines changed

src/modules/adsb-feeder/filesystem/root/opt/adsb/adsb-setup/app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,10 +1119,7 @@ def restore(self):
11191119
with open(restore_path / filename, "bw") as f:
11201120
# this while loop looks backwards but it's not because we start with the first chunk
11211121
# we read further up in this function
1122-
while True:
1123-
if len(chunk) == 0:
1124-
break
1125-
1122+
while len(chunk) > 0:
11261123
received_bytes += len(chunk)
11271124
if time.time() > next_progress:
11281125
next_progress = time.time() + 5

0 commit comments

Comments
 (0)