Fix C0113 & Exempting R0201 Line as self required.

This commit is contained in:
Zedifus 2022-06-15 04:27:27 +01:00
parent 9ed5cc3c5a
commit 5f8dbd4dc7
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ class Stats:
return level_total_size
def get_server_players(self, server_id):
def get_server_players(self, server_id): # pylint: disable=no-self-use
server = HelperServers.get_server_data_by_id(server_id)

View File

@ -241,7 +241,7 @@ class ServerInstance:
)
which_java_raw = self.helper.which_java()
java_path = which_java_raw + "\\bin\\java"
if not str(which_java_raw) == str(self.helper.get_servers_root_dir) or str(
if str(which_java_raw) != str(self.helper.get_servers_root_dir) or str(
self.helper.get_servers_root_dir
) in str(which_java_raw):
self.server_command[0] = java_path