mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -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:
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue