Skip to content

Commit 5d56693

Browse files
committed
style(db): remove f-string without placeholders
Replace f-string with regular string in injection pattern warning since there are no placeholders. Auto-fixed by ruff linter.
1 parent 3b6de42 commit 5d56693

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

db/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def validate(self, sql: str) -> list[str]:
141141
# Check for SQL injection patterns
142142
for pattern in INJECTION_PATTERNS:
143143
if re.search(pattern, sql_upper):
144-
errors.append(f"Potential SQL injection pattern detected")
144+
errors.append("Potential SQL injection pattern detected")
145145
break
146146

147147
return errors

0 commit comments

Comments
 (0)