flake8: unnecessary else

* modified method to not use an unnecessary else statement
This commit is contained in:
nico 2021-04-06 11:29:24 +02:00
parent d410c45429
commit 78015c196a
Signed by: mightyBroccoli
GPG Key ID: 1F6495B44DABCE6E
1 changed files with 5 additions and 6 deletions

View File

@ -39,11 +39,10 @@ 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
else:
with open(self.etag_path, "r") as local_file: with open(self.etag_path, "r") as local_file:
local_etag = local_file.read() local_etag = local_file.read()
# etag file is present but outdated
if local_etag != etag: if local_etag != etag:
return True return True