diff --git a/lib/fastlane/plugin/browserstack/helper/browserstack_helper.rb b/lib/fastlane/plugin/browserstack/helper/browserstack_helper.rb index 0b5f432..05513a2 100644 --- a/lib/fastlane/plugin/browserstack/helper/browserstack_helper.rb +++ b/lib/fastlane/plugin/browserstack/helper/browserstack_helper.rb @@ -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"]