Skip to content

Commit

Permalink
Fix handling of empty set of allowed linters (teemtee#3158)
Browse files Browse the repository at this point in the history
Empty set is not the same as unset, and the test must respect that.

Fixes teemtee#3156
  • Loading branch information
happz authored and The-Mule committed Oct 14, 2024
1 parent 13aef22 commit cccc469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmt/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def lint(

enforce_checks = enforce_checks or []

linters = linters or self.resolve_enabled_linters(
linters = linters if linters is not None else self.resolve_enabled_linters(
enable_checks=enable_checks,
disable_checks=disable_checks)

Expand Down

0 comments on commit cccc469

Please sign in to comment.