Skip to content

Commit

Permalink
Remove unnecessary deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Aug 18, 2022
1 parent 1ed791b commit b360c9f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,6 @@ def main_loop():
logger(f"Server 1 watched: {server_1_watched}", 3)
logger(f"Server 2 watched: {server_2_watched}", 3)

# clone watched so it isnt modified in the cleanup function so all duplicates are actually removed
server_1_watched_filtered = copy.deepcopy(server_1_watched)
server_2_watched_filtered = copy.deepcopy(server_2_watched)

logger("Cleaning Server 1 Watched", 1)
server_1_watched_filtered = cleanup_watched(
server_1_watched, server_2_watched, user_mapping, library_mapping
Expand Down

0 comments on commit b360c9f

Please sign in to comment.