Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Jan 9, 2024
1 parent 826c749 commit 76de6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxdrive/dao/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def is_healthy(database: Path, /) -> bool:
con = sqlite3.connect(str(database))
try:
status = con.execute("PRAGMA integrity_check(1)").fetchone()
return bool(status[0] == "ok")
return status[0] == "ok"
finally:
# According to the documentation:
# Connection object used as context manager only commits or rollbacks
Expand Down

0 comments on commit 76de6b7

Please sign in to comment.