Skip to content

Commit

Permalink
Avoid 1 use of keyword hackery (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored Dec 2, 2020
1 parent 47411d8 commit e111db3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/faraday/dependency_loader.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'ruby2_keywords'

module Faraday
# DependencyLoader helps Faraday adapters and middleware load dependencies.
module DependencyLoader
Expand All @@ -15,7 +13,7 @@ def dependency(lib = nil)
self.load_error = e
end

ruby2_keywords def new(*)
def new(*)
unless loaded?
raise "missing dependency for #{self}: #{load_error.message}"
end
Expand Down

0 comments on commit e111db3

Please sign in to comment.