Skip to content

Commit

Permalink
Merge pull request #272 from ifad/chore/redundant-coercion
Browse files Browse the repository at this point in the history
Fix Lint/RedundantStringCoercion offenses
  • Loading branch information
tagliala authored Sep 14, 2024
2 parents 13d55f9 + 36e3adf commit 80095db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/heathen/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Error < StandardError; end
# Raised by task [Processor] method when a pre-condition (such as mime-type) is not valid.
class ExpectationNotMet < Error
def initialize(name, value, pattern)
super "Expectation failure on #{name}, expected '#{value.to_s}' to match /#{pattern.to_s}/"
super "Expectation failure on #{name}, expected '#{value}' to match /#{pattern}/"
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/heathen/processor_methods/convert_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Processor
def convert_image(to: 'tiff', params: '')
expect_mime_type 'image/*'

target_file = temp_file_name '', ".#{to.to_s}"
target_file = temp_file_name '', ".#{to}"
executioner.execute(
*[
Colore::C_.convert_path,
Expand Down

0 comments on commit 80095db

Please sign in to comment.