mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 02:05:54 +08:00
Apply suggestions from code review
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
This commit is contained in:
parent
0ce09d917c
commit
467801bf9e
@ -18,7 +18,6 @@ class Profile(Linter):
|
||||
if self._file.exists() and self._settings["checks"].get("diagnostic-long-profile-names", False):
|
||||
for check in self.checklengthofProfileName():
|
||||
yield check
|
||||
yield
|
||||
|
||||
|
||||
def checklengthofProfileName(self) -> Iterator[Diagnostic]:
|
||||
@ -35,7 +34,7 @@ class Profile(Linter):
|
||||
)
|
||||
yield
|
||||
|
||||
def _getprofileName(self) -> dict:
|
||||
def _getprofileName(self) -> Tuple[str, bool]:
|
||||
config = ConfigParser()
|
||||
config.read([self._file])
|
||||
name_of_profile = config.get("general", "name")
|
||||
|
Loading…
x
Reference in New Issue
Block a user