Skip to content

Commit 8e1c3da

Browse files
Apply suggestion from Sourcery
1 parent fabdf47 commit 8e1c3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyhf/experimental/modifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, config):
6767
self.config = config
6868

6969
def collect(self, thismod, nom):
70-
maskval = True if thismod else False
70+
maskval = bool(thismod)
7171
mask = [maskval] * len(nom)
7272
return {"mask": mask}
7373

0 commit comments

Comments
 (0)