Skip to content

Commit 52ccb87

Browse files
authored
Apply suggestion from @omer-roth
1 parent 4acb6a8 commit 52ccb87

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cycode/cli/utils/scan_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def is_cycodeignore_allowed_by_scan_config(ctx: typer.Context) -> bool:
3636
def should_use_presigned_upload(scan_type: str) -> bool:
3737
if scan_type in consts.PRESIGNED_UPLOAD_SCAN_TYPES:
3838
return True
39-
# Secret scans use the presigned S3 async flow only when explicitly opted in via env var;
40-
# read os.environ at runtime (not config.get_val_as_bool, which snapshots os.environ at import time).
4139
if scan_type == consts.SECRET_SCAN_TYPE:
4240
return parse_bool(os.getenv(consts.SECRET_SCAN_ASYNC_ENV_VAR_NAME))
4341
return False

0 commit comments

Comments
 (0)