Skip to content

Commit 2b072a5

Browse files
AliSoftwaremokagio
andauthored
Move return to only successful branch
h/t @mokagio in #427 (comment) Co-authored-by: Gio Lodi <giovanni.lodi42@gmail.com>
1 parent 9f8621c commit 2b072a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_to_s3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def self.run(params)
2424
message = "File already exists in S3 bucket #{bucket} at #{key}"
2525
if params[:skip_if_exists]
2626
UI.important("#{message}. Skipping upload.")
27+
return key
2728
else
2829
UI.user_error!(message)
2930
end
30-
return key
3131
end
3232

3333
UI.message("Uploading #{file_path} to: #{key}")

0 commit comments

Comments
 (0)