fix linting

This commit is contained in:
Robert Kaussow 2021-01-31 14:44:36 +01:00
parent f70f0ca1f1
commit 3c822b4525
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -17,7 +17,7 @@ class CheckWhenFormat(StandardBase):
if not errors:
for task in tasks:
if 'when' in task and not self._is_valid(task['when']):
if "when" in task and not self._is_valid(task["when"]):
errors.append(self.Error(task["__line__"], self.helptext))
return self.Result(candidate.path, errors)
@ -26,4 +26,4 @@ class CheckWhenFormat(StandardBase):
def _is_valid(when):
if not isinstance(when, str):
return True
return when.find('{{') == -1 and when.find('}}') == -1
return when.find("{{") == -1 and when.find("}}") == -1