Skip to content

Commit e7da56d

Browse files
Violet2314claude
andcommitted
fix(safety): remove unused git sub token (flake8 F841)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 90b3426 commit e7da56d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

trpc_agent_sdk/safety/_rules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,6 @@ def _check_bash(self, scan_input: ScanInput, policy: PolicyConfig) -> list[Safet
706706
for i, tok in enumerate(tokens):
707707
base = tok.split("/")[-1].lower()
708708
if base == "git" and i + 1 < len(tokens):
709-
sub = tokens[i + 1].lstrip("-").lower()
710709
# skip global flags like -C / --git-dir between git and subcmd
711710
j = i + 1
712711
while j < len(tokens) and tokens[j].startswith("-"):

0 commit comments

Comments
 (0)