Fixed following SonarQube code smells:

1) Remove this useless assignment to a variable.
2) Remove the unused local variable.
This commit is contained in:
Akshay Joshi
2022-01-12 14:53:19 +05:30
parent 374c5e952f
commit e38c38cd58
17 changed files with 30 additions and 42 deletions

View File

@@ -57,7 +57,7 @@ def validate_master_password(password):
return False
else:
return True
except Exception as _:
except Exception:
False
@@ -79,7 +79,7 @@ def set_masterpass_check_text(password, clear=False):
.update({User.masterpass_check: masterpass_check})
db.session.commit()
except Exception as _:
except Exception:
db.session.rollback()
raise