mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-03 03:56:52 +00:00
Simplify conditoinal in decision logic
Add test to cover branch of decision logic we were not previously exercising
This commit is contained in:
parent
178092954d
commit
aefa79535f
2 changed files with 4 additions and 2 deletions
|
|
@ -146,8 +146,8 @@ class StyleGuide(object):
|
|||
return find_more_specific(extra_select, ignore)
|
||||
if select or (extra_select and self._using_default_select):
|
||||
return Decision.Selected
|
||||
if ((select is None and extra_select is None) or
|
||||
(not self._using_default_ignore and select is None)):
|
||||
if (select is None and
|
||||
(extra_select is None or not self._using_default_ignore)):
|
||||
return Decision.Ignored
|
||||
return Decision.Selected
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue