mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
kdk_handler.py: Remove redundant str comparison
This commit is contained in:
@@ -488,8 +488,6 @@ class KernelDebugKitObject:
|
|||||||
if kdk_folder.name.endswith(".kdk") or kdk_folder.name.endswith(".pkg"):
|
if kdk_folder.name.endswith(".kdk") or kdk_folder.name.endswith(".pkg"):
|
||||||
should_remove = True
|
should_remove = True
|
||||||
for build in exclude_builds:
|
for build in exclude_builds:
|
||||||
if build == "":
|
|
||||||
continue
|
|
||||||
if kdk_folder.name.endswith(f"_{build}.kdk") or kdk_folder.name.endswith(f"_{build}.pkg"):
|
if kdk_folder.name.endswith(f"_{build}.kdk") or kdk_folder.name.endswith(f"_{build}.pkg"):
|
||||||
should_remove = False
|
should_remove = False
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user