Skip to content

Commit fed86bc

Browse files
committed
Always check processor arguments, not just for strict mode
1 parent 75c466d commit fed86bc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pre_commit_hooks/check_autopkg_recipes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,17 +553,17 @@ def main(argv=None):
553553
if not validate_no_superclass_procs(process, filename):
554554
retval = 1
555555

556+
if HAS_AUTOPKGLIB:
557+
if not validate_proc_args(process, filename):
558+
retval = 1
559+
556560
if args.strict:
557561
if not validate_proc_type_conventions(process, filename):
558562
retval = 1
559563

560564
if not validate_required_proc_for_types(process, filename):
561565
retval = 1
562566

563-
if HAS_AUTOPKGLIB:
564-
if not validate_proc_args(process, filename):
565-
retval = 1
566-
567567
return retval
568568

569569

0 commit comments

Comments
 (0)