Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ def self.upload_file(browserstack_username, browserstack_access_key, file_path,
)

response_json = JSON.parse(response.to_s)

if !response_json["custom_id"].nil?
return response_json["custom_id"]
else
return response_json["app_url"]
end
return response_json["app_url"]
rescue RestClient::ExceptionWithResponse => err
begin
error_response = JSON.parse(err.response.to_s)["error"]
Expand Down