Commit 3b96d441 authored by Alex Kalderimis's avatar Alex Kalderimis

Only pass kwargs to Schema::Field.new

parent 9ebbc4e4
...@@ -9,7 +9,7 @@ module Types ...@@ -9,7 +9,7 @@ module Types
DEFAULT_COMPLEXITY = 1 DEFAULT_COMPLEXITY = 1
def initialize(*args, **kwargs, &block) def initialize(**kwargs, &block)
@calls_gitaly = !!kwargs.delete(:calls_gitaly) @calls_gitaly = !!kwargs.delete(:calls_gitaly)
@constant_complexity = !!kwargs[:complexity] @constant_complexity = !!kwargs[:complexity]
@requires_argument = !!kwargs.delete(:requires_argument) @requires_argument = !!kwargs.delete(:requires_argument)
...@@ -18,7 +18,7 @@ module Types ...@@ -18,7 +18,7 @@ module Types
kwargs = check_feature_flag(kwargs) kwargs = check_feature_flag(kwargs)
kwargs = gitlab_deprecation(kwargs) kwargs = gitlab_deprecation(kwargs)
super(*args, **kwargs, &block) super(**kwargs, &block)
end end
def requires_argument? def requires_argument?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment