Skip to content

Commit ad381f1

Browse files
committed
fix: return both excludes in no baseline case
Signed-off-by: George Pickering <9803299+bigpick@users.noreply.github.com>
1 parent d0ee995 commit ad381f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

detect_secrets/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def parse_args(argv, parserBuilder):
1919

2020
def maybe_get_existing_exclude(exclude_files, exclude_lines, old_baseline):
2121
if not old_baseline:
22-
return exclude_lines
22+
return exclude_files, exclude_lines
2323

2424
previously_included = old_baseline.get("exclude", None)
2525
if not previously_included:

0 commit comments

Comments
 (0)