We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb4403b commit abba1f5Copy full SHA for abba1f5
1 file changed
src/seclab_taskflows/mcp_servers/ghsa.py
@@ -57,10 +57,7 @@ class GHSABackend:
57
def __init__(self, db_dir: str):
58
# Directory in which the GHSA SQLite database file will be stored.
59
self.db_dir = db_dir
60
- if not Path(self.db_dir).exists():
61
- db_uri = "sqlite://"
62
- else:
63
- db_uri = f"sqlite:///{self.db_dir}/ghsa.db"
+ db_uri = "sqlite://" if not Path(self.db_dir).exists() else f"sqlite:///{self.db_dir}/ghsa.db"
64
self.engine = create_engine(db_uri, echo=False)
65
Base.metadata.create_all(
66
self.engine,
0 commit comments