aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico wellpott <nico@magicbroccoli.de>2021-04-06 11:29:24 +0200
committernico wellpott <nico@magicbroccoli.de>2021-04-06 11:29:24 +0200
commit78015c196afd5f1ae8c3d65348e0059dddcce6c5 (patch)
treee819f275f6b4e32799ceffa726f666e850919046
parentd410c454297f8530fc94f37ac0f99bc0093f2b89 (diff)
flake8: unnecessary else
* modified method to not use an unnecessary else statement
-rw-r--r--src/blimp/main.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/blimp/main.py b/src/blimp/main.py
index fccf9af..93fdc29 100644
--- a/src/blimp/main.py
+++ b/src/blimp/main.py
@@ -39,13 +39,12 @@ class Blimp:
if not local_file_present(self.etag_path):
return True
- # etag file is present but outdated
- else:
- with open(self.etag_path, "r") as local_file:
- local_etag = local_file.read()
+ with open(self.etag_path, "r") as local_file:
+ local_etag = local_file.read()
- if local_etag != etag:
- return True
+ # etag file is present but outdated
+ if local_etag != etag:
+ return True
return False