diff options
Diffstat (limited to 'lib/api/variables.rb')
-rw-r--r-- | lib/api/variables.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/api/variables.rb b/lib/api/variables.rb index cea0cb3a19c..0b3ec10f1b4 100644 --- a/lib/api/variables.rb +++ b/lib/api/variables.rb @@ -17,7 +17,6 @@ module API def find_variable(params) variables = ::Ci::VariablesFinder.new(user_project, params).execute.to_a - return variables.first unless ::Gitlab::Ci::Features.variables_api_filter_environment_scope? return variables.first unless variables.many? # rubocop: disable CodeReuse/ActiveRecord conflict!("There are multiple variables with provided parameters. Please use 'filter[environment_scope]'") |