Skip to content

Commit

Permalink
Fix rubocop violations
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Sep 5, 2024
1 parent 95b5857 commit 3fae8b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module Actions
class IosGenerateStringsFileFromCodeAction < Action
def self.run(params)
output_encoding = begin
Encoding.find(params[:output_encoding])
rescue ArgumentError => error
UI.user_error!(error.message)
end
Encoding.find(params[:output_encoding])
rescue ArgumentError => e
UI.user_error!(e.message)
end

Dir.mktmpdir('genstrings-output-') do |tmpdir|
# Build the command arguments
Expand Down
4 changes: 2 additions & 2 deletions spec/ios_generate_strings_file_from_code_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def test_genstrings(params:, expected_dir_name:, expected_logs: nil, expected_fa
return_value = []
begin
return_value = run_described_fastlane_action(params)
rescue FastlaneCore::Interface::FastlaneError => error
user_errors << error.message
rescue FastlaneCore::Interface::FastlaneError => e
user_errors << e.message
end

# Assert: UI.messages, UI.user_error! and return value from the action
Expand Down

0 comments on commit 3fae8b8

Please sign in to comment.