From fcaa93b4d8949874f62bb5d248825d62189773e7 Mon Sep 17 00:00:00 2001 From: Nhan Ho Date: Wed, 2 Mar 2022 15:32:13 +0700 Subject: [PATCH] Redundant code This line is unused in the rest of the function, and missing `ptr` variable actually crashes the code. --- screepsapi/screepsapi.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/screepsapi/screepsapi.py b/screepsapi/screepsapi.py index d82a4f0..fff4ca1 100644 --- a/screepsapi/screepsapi.py +++ b/screepsapi/screepsapi.py @@ -523,8 +523,6 @@ def connect(self): logging.getLogger('websocket').addHandler(logging.NullHandler()) websocket.enableTrace(False) - prefix = PTR_PREFIX if ptr else prefix - url = 'wss://' if self.secure else 'ws://' url += self.host if self.host else OFFICIAL_HOST url += self.prefix if self.prefix else ''