mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:06:05 +08:00
Simplify code
CURA-5035
This commit is contained in:
parent
8250ea8366
commit
d4cf944e11
@ -106,8 +106,7 @@ class CuraPackageManager(QObject):
|
||||
for section, packages in self.getAllInstalledPackagesInfo().items():
|
||||
for package in packages:
|
||||
if package["package_id"] == package_id:
|
||||
package_info = package
|
||||
return package_info
|
||||
return package
|
||||
|
||||
return None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user