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:
Jamie Greunbaum 2024-06-05 10:30:51 -04:00
parent e529d410bb
commit 695945b783

View File

@ -237,8 +237,7 @@ func __create_header_data(content_length:int = -1) -> Array:
func __validate_server_response(_response:Variant) -> int: func __validate_server_response(_response:Variant) -> int:
# If the response has a message field, make the assumption that this is # If the response has a message field, make the assumption that this is
# because the response was an error code. # because the response was an error code.
if (_response.has("error") and _response["error"] == true) or \ if (_response.has("error") and _response["error"] == true) or _response.has("message"):
_response.has("message"):
var error_data : BugbotErrorData = BugbotErrorData.new() var error_data : BugbotErrorData = BugbotErrorData.new()
error_data.message = _response["message"] error_data.message = _response["message"]
printerr(error_data.message) printerr(error_data.message)