Fix warnings about variable 'error' not being used.

This commit is contained in:
Noah 2022-12-01 13:26:55 -06:00
parent b7636394b2
commit fe7179e43a

View File

@ -36,7 +36,7 @@ func check_for_update():
# Connect the request_completed signal to self (this script)'s _versions_request_completed function
versions_request.connect("request_completed", self, "_versions_request_completed")
# Send an HTTP request to the releases page of UltraFlare on code.retroedge.tech
var error = versions_request.request("https://code.retroedge.tech/api/v1/repos/UltraFlare/UltraFlare/releases?draft=false&pre-release=true&limit=1")
var _error = versions_request.request("https://code.retroedge.tech/api/v1/repos/UltraFlare/UltraFlare/releases?draft=false&pre-release=true&limit=1")
# SIGNALS
@ -72,7 +72,7 @@ func _download_request_completed(_result, _response_code, _headers, body):
# IF the os is "linux" based, use chmod to change the file to executable
if os_name == "linux":
var error = OS.execute("chmod", ["+x", OS.get_config_dir()+"/UltraFlare/current/UltraFlare-"+os_name+"-x86_64"])
var _error = OS.execute("chmod", ["+x", OS.get_config_dir()+"/UltraFlare/current/UltraFlare-"+os_name+"-x86_64"])
# Enable (Un-disable?) the Play_button
$Panel/Play_button.disabled = false