mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-15 05:43:16 +08: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
@ -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…
x
Reference in New Issue
Block a user