Skip to content

Commit 64e8a2b

Browse files
authored
Lint rack_builder.rb: avoid naming a method (#1626)
Lint rack_builder.rb: avoid naming a method The method name gave a complaint
1 parent bbaa093 commit 64e8a2b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/faraday/rack_builder.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def raise_if_locked
221221
end
222222

223223
def raise_if_adapter(klass)
224-
return unless is_adapter?(klass)
224+
return unless klass <= Faraday::Adapter
225225

226226
raise 'Adapter should be set using the `adapter` method, not `use`'
227227
end
@@ -234,10 +234,6 @@ def adapter_set?
234234
!@adapter.nil?
235235
end
236236

237-
def is_adapter?(klass) # rubocop:disable Naming/PredicateName
238-
klass <= Faraday::Adapter
239-
end
240-
241237
def use_symbol(mod, key, ...)
242238
use(mod.lookup_middleware(key), ...)
243239
end

0 commit comments

Comments
 (0)