Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Lint/AmbiguousOperator offenses #275

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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