Skip to content

Commit

Permalink
bundle exec rubocop -A
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaca-tc committed Apr 1, 2024
1 parent 860efcd commit d29a251
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/diver_down/definition/method_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.from_hash(hash)
new(
name: hash[:name] || hash['name'],
context: hash[:context] || hash['context'],
paths: (hash[:paths] || hash['paths'] || [])
paths: hash[:paths] || hash['paths'] || []
)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/diver_down/definition_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get(id)
# @return [Array<Integer>] ids of the definitions
def set(*definitions)
definitions.map do
raise(ArgumentError, "definition already set") if _1.store_id
raise(ArgumentError, 'definition already set') if _1.store_id

_1.store_id = @definitions.size + 1

Expand Down

0 comments on commit d29a251

Please sign in to comment.