Skip to content

Commit

Permalink
Fix handling of empty set of allowed linters
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 #3156
  • Loading branch information
happz committed Aug 20, 2024
1 parent c5c214a commit adea61e
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 adea61e

Please sign in to comment.