mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Remove elif after returns
This commit is contained in:
parent
00acc3f31a
commit
f8590be6da
1 changed files with 6 additions and 3 deletions
|
|
@ -11,13 +11,16 @@ def getLinter(file: Path, settings: dict) -> Optional[Linter]:
|
|||
""" Returns a Linter depending on the file format """
|
||||
if not file.exists():
|
||||
return None
|
||||
elif ".inst" in file.suffixes and ".cfg" in file.suffixes:
|
||||
|
||||
if ".inst" in file.suffixes and ".cfg" in file.suffixes:
|
||||
return Profile(file, settings)
|
||||
elif ".def" in file.suffixes and ".json" in file.suffixes:
|
||||
|
||||
if ".def" in file.suffixes and ".json" in file.suffixes:
|
||||
if file.stem in ("fdmprinter.def", "fdmextruder.def"):
|
||||
return None
|
||||
return Definition(file, settings)
|
||||
elif file.parent.stem == "meshes":
|
||||
|
||||
if file.parent.stem == "meshes":
|
||||
return Meshes(file, settings)
|
||||
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue