Inline variable that is immediately returned

This commit is contained in:
Brian Pepple 2020-09-27 11:35:45 -04:00 committed by Odd Stråbø
parent cbaa41d242
commit 52525d4725

View file

@ -452,5 +452,4 @@ class API(object):
returns the URL the server prefers to use
'''
response = self.send_request(server_address, "system/info/public")
url = response.url.replace('/system/info/public', '')
return url
return response.url.replace('/system/info/public', '')