Add is not None because it makes it clearer that the lamdba returns a boolean.

This commit is contained in:
Joey de l'Arago 2022-11-23 17:21:31 +01:00
parent a7800f824a
commit 8e027c4af9

View file

@ -71,7 +71,7 @@ def diagnoseIssuesWithFile(file: Path, settings: dict) -> List[Diagnostic]:
if not diagnostic_generator:
return []
return list(filter(lambda d: d, diagnostic_generator.check()))
return list(filter(lambda d: d is not None, diagnostic_generator.check()))
def applyFixesToFile(file, settings, full_body_check) -> None: