Skip to content
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

avoid 1 use of keyword hackery #1211

Merged
merged 1 commit into from Dec 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/faraday/dependency_loader.rb
@@ -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