mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Remove the unnecessary condition
This commit is contained in:
+1
-2
@@ -42,8 +42,7 @@ class Updater:
|
|||||||
for file in files:
|
for file in files:
|
||||||
source = os.path.join(root, file)
|
source = os.path.join(root, file)
|
||||||
destination = source.replace(target_dir, os.path.dirname(os.path.realpath(__file__)))
|
destination = source.replace(target_dir, os.path.dirname(os.path.realpath(__file__)))
|
||||||
if "OCK_Files" not in destination and "updater" not in destination:
|
shutil.move(source, destination)
|
||||||
shutil.move(source, destination)
|
|
||||||
shutil.rmtree(self.temporary_dir)
|
shutil.rmtree(self.temporary_dir)
|
||||||
|
|
||||||
def run_update(self):
|
def run_update(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user