Skip to content

Commit 94572f1

Browse files
committed
Avoid unnecessary copy.
1 parent 04db9f4 commit 94572f1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

PyFunceble/config/loader.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,18 +391,16 @@ def start(self) -> "ConfigLoader":
391391
config = self.conditional_switch(config)
392392

393393
PyFunceble.storage.CONFIGURATION = Box(
394-
copy.deepcopy(config),
394+
config,
395395
)
396396
PyFunceble.storage.FLATTEN_CONFIGURATION = DictHelper(
397397
PyFunceble.storage.CONFIGURATION
398398
).flatten()
399399
PyFunceble.storage.HTTP_CODES = Box(
400-
copy.deepcopy(config["http_codes"]),
401-
)
402-
PyFunceble.storage.COLLECTION = Box(copy.deepcopy(config["collection"]))
403-
PyFunceble.storage.LINKS = Box(
404-
copy.deepcopy(config["links"]),
400+
config["http_codes"],
405401
)
402+
PyFunceble.storage.COLLECTION = Box(config["collection"])
403+
PyFunceble.storage.LINKS = Box(config["links"])
406404

407405
return self
408406

0 commit comments

Comments
 (0)