Skip to content

Commit

Permalink
Merge pull request #275 from ifad/chore/fix-ambiguous-operator
Browse files Browse the repository at this point in the history
Fix Lint/AmbiguousOperator offenses
  • Loading branch information
tagliala authored Sep 14, 2024
2 parents d8ac9f6 + dfca266 commit 70de07a
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/doc_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DocKey

# Constructs [DocKey] from the input string, which should be the output from [#to_s].
def self.parse(doc_key_str)
self.new *(doc_key_str.split '/')
self.new(*doc_key_str.split('/'))
end

# Constructor. The app and doc_id may only be comprised of alphanumeric letters and
Expand Down
2 changes: 1 addition & 1 deletion lib/heathen/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def expect_mime_type(pattern)
# Performs a sub-task, defined by action. See [Task] for details.
def perform_task(action)
task_proc = Task.find(action, job.mime_type)[:proc]
self.instance_eval &task_proc
self.instance_eval(&task_proc)
end

# Called to clean up temporary files at end of processing
Expand Down

0 comments on commit 70de07a

Please sign in to comment.