Skip to content

Commit 92af683

Browse files
redsun82Copilot
andcommitted
Just: drop a check the pattern above already makes
An assignment only reaches this loop by matching `ENV_RE`, which requires a name before the `=`, so the key can never come back empty and the branch could not run. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 7f26a0f commit 92af683

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

misc/just/codeql_test_run.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ def main():
130130

131131
for env_var in args.env:
132132
key, _, value = env_var.partition("=")
133-
if not key:
134-
error(f"Invalid environment variable assignment: {env_var}")
135-
return 1
136133
os.environ[key] = value
137134

138135
# Resolve codeql executable

0 commit comments

Comments
 (0)