Skip to content

Commit

Permalink
make code oneline by using unless
Browse files Browse the repository at this point in the history
Co-authored-by: Kohki Miki <giginet.net@gmail.com>
  • Loading branch information
freddi-kit and giginet committed Sep 9, 2022
1 parent 40337e3 commit 0f2a3d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastlane_core/lib/fastlane_core/itunes_transporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ def execute(command, hide_output)
@errors << ex.to_s
end

unless exit_status.zero?
@errors << "The call to the altool completed with a non-zero exit status: #{exit_status}. This indicates a failure."
end
@errors << "The call to the altool completed with a non-zero exit status: #{exit_status}. This indicates a failure." unless exit_status.zero?

UI.important(@warnings.join("\n")) unless @warnings.empty?

Expand Down

0 comments on commit 0f2a3d4

Please sign in to comment.