Skip to content

Commit

Permalink
chore: Fix linting issues
Browse files Browse the repository at this point in the history
- add_runtime_dependency is deprecated in favour of add_dependency
- params are not required for `super` when the method signature is unchanged
  • Loading branch information
mattbearman committed Sep 12, 2024
1 parent 1f40fd8 commit 5900b5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apia.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Gem::Specification.new do |s|
s.authors = ['Adam Cooke']
s.email = ['adam@k.io']
s.licenses = ['MIT']
s.add_runtime_dependency 'json'
s.add_runtime_dependency 'rack'
s.add_dependency 'json'
s.add_dependency 'rack'
end
2 changes: 1 addition & 1 deletion lib/apia/dsls/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def field(name, *args, type: nil, **options, &block)

field :pagination, type: PaginationObject
end
super(name, *args, type: type, **options, &block)
super
end

def fields(fieldset)
Expand Down

0 comments on commit 5900b5c

Please sign in to comment.