mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Add is not None because it makes it clearer that the lamdba returns a boolean.
This commit is contained in:
parent
a7800f824a
commit
8e027c4af9
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ def diagnoseIssuesWithFile(file: Path, settings: dict) -> List[Diagnostic]:
|
||||||
if not diagnostic_generator:
|
if not diagnostic_generator:
|
||||||
return []
|
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:
|
def applyFixesToFile(file, settings, full_body_check) -> None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue