diff options
Diffstat (limited to 'app/graphql/resolvers/packages_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/packages_resolver.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/graphql/resolvers/packages_resolver.rb b/app/graphql/resolvers/packages_resolver.rb deleted file mode 100644 index 3eeed48ff7e..00000000000 --- a/app/graphql/resolvers/packages_resolver.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Resolvers - class PackagesResolver < BaseResolver - type Types::Packages::PackageType.connection_type, null: true - - def resolve(**args) - return unless packages_available? - - ::Packages::PackagesFinder.new(object).execute - end - - private - - def packages_available? - ::Gitlab.config.packages.enabled - end - end -end |