Skip to content

Funding from sponcerships #287

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Prefix any unused method arguments with an underscore
  • Loading branch information
deepsource-autofix[bot] authored Feb 27, 2022
commit b6d22ec78bd66042d9bd5f6ce9619225ce56a81c
6 changes: 3 additions & 3 deletions lib/scientist/experiment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def clean_value(value)
# and return true or false.
#
# Returns the block.
def compare(*args, &block)
def compare(*_args, &block)
@_scientist_comparator = block
end

Expand All @@ -140,7 +140,7 @@ def compare(*args, &block)
# and return true or false.
#
# Returns the block.
def compare_errors(*args, &block)
def compare_errors(*_args, &block)
@_scientist_error_comparator = block
end

Expand Down Expand Up @@ -202,7 +202,7 @@ def raise_with(exception)
# Called when an exception is raised while running an internal operation,
# like :publish. Override this method to track these exceptions. The
# default implementation re-raises the exception.
def raised(operation, error)
def raised(_operation, error)
raise error
end

Expand Down
4 changes: 2 additions & 2 deletions test/scientist/experiment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def ex.enabled?
true
end

def ex.publish(result)
def ex.publish(_result)
raise "boomtown"
end

Expand All @@ -164,7 +164,7 @@ def ex.publish(result)
end

it "reports publishing errors" do
def @ex.publish(result)
def @ex.publish(_result)
raise "boomtown"
end

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy