Skip to content

Commit 7b3064c

Browse files
authored
Add return value (#25)
1 parent 9f6358e commit 7b3064c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/fastlane/plugin/emerge/actions/emerge_action.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def self.run(params)
3131

3232
if file_path.nil? || !File.exist?(file_path)
3333
UI.error("Invalid input file")
34-
return
34+
return false
3535
end
3636
extension = File.extname(file_path)
3737

@@ -86,7 +86,7 @@ def self.run(params)
8686
UI.error("Provided #{extension == '.zip' ? 'zipped archive' : 'ipa'} and linkmaps, linkmaps will not be added to upload.")
8787
elsif extension != '.zip' && extension != '.ipa'
8888
UI.error("Invalid input file")
89-
return
89+
return false
9090
end
9191

9292
params = {
@@ -103,6 +103,7 @@ def self.run(params)
103103
}
104104
upload_id = Helper::EmergeHelper.perform_upload(api_token, params, file_path)
105105
UI.success("🎉 Your app is processing, you can find the results at https://emergetools.com/build/#{upload_id}")
106+
upload_id
106107
end
107108

108109
def self.copy_dsyms(from, to)

0 commit comments

Comments
 (0)