Made a minor change to formatting. This code does not need to be two lines and I don't know why I made it that way.
This commit is contained in:
parent
e529d410bb
commit
695945b783
@ -237,8 +237,7 @@ func __create_header_data(content_length:int = -1) -> Array:
|
||||
func __validate_server_response(_response:Variant) -> int:
|
||||
# If the response has a message field, make the assumption that this is
|
||||
# because the response was an error code.
|
||||
if (_response.has("error") and _response["error"] == true) or \
|
||||
_response.has("message"):
|
||||
if (_response.has("error") and _response["error"] == true) or _response.has("message"):
|
||||
var error_data : BugbotErrorData = BugbotErrorData.new()
|
||||
error_data.message = _response["message"]
|
||||
printerr(error_data.message)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user