Browse Source

Use bool() instead of if/else

master
Ricardo Branco 6 years ago
parent
commit
0593961243
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py View File

@@ -261,7 +261,7 @@ class RegistryCleaner():
261 261
             if not args.quiet:
262 262
                 for line in cli.logs(stream=True):
263 263
                     print(line.decode('utf-8'), end="")
264
-            status = True if cli.wait()['StatusCode'] == 0 else False
264
+            status = bool(cli.wait()['StatusCode'] == 0)
265 265
             cli.remove()
266 266
         return status
267 267
 

Loading…
Cancel
Save