flake8: unnecessary else
* modified method to not use an unnecessary else statement
This commit is contained in:
parent
d410c45429
commit
78015c196a
|
@ -39,13 +39,12 @@ class Blimp:
|
||||||
if not local_file_present(self.etag_path):
|
if not local_file_present(self.etag_path):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# etag file is present but outdated
|
with open(self.etag_path, "r") as local_file:
|
||||||
else:
|
local_etag = local_file.read()
|
||||||
with open(self.etag_path, "r") as local_file:
|
|
||||||
local_etag = local_file.read()
|
|
||||||
|
|
||||||
if local_etag != etag:
|
# etag file is present but outdated
|
||||||
return True
|
if local_etag != etag:
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue