Skip to content

Commit

Permalink
fix: return both excludes in no baseline case
Browse files Browse the repository at this point in the history
  • Loading branch information
bigpick committed Jan 30, 2024
1 parent 31e097d commit 8e95cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_secrets/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def parse_args(argv, parserBuilder):

def maybe_get_existing_exclude(exclude_files, exclude_lines, old_baseline):
if not old_baseline:
return exclude_lines
return exclude_files, exclude_lines

previously_included = old_baseline.get("exclude", None)
if not previously_included:
Expand Down

0 comments on commit 8e95cb7

Please sign in to comment.