diff options
Diffstat (limited to 'app/graphql/resolvers/snippets')
-rw-r--r-- | app/graphql/resolvers/snippets/blobs_resolver.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/graphql/resolvers/snippets/blobs_resolver.rb b/app/graphql/resolvers/snippets/blobs_resolver.rb index 868d34ae7ad..672214df7d5 100644 --- a/app/graphql/resolvers/snippets/blobs_resolver.rb +++ b/app/graphql/resolvers/snippets/blobs_resolver.rb @@ -15,13 +15,10 @@ module Resolvers required: false, description: 'Paths of the blobs.' - def resolve(**args) + def resolve(paths: []) authorize!(snippet) - return [snippet.blob] if snippet.empty_repo? - paths = Array(args.fetch(:paths, [])) - if paths.empty? snippet.blobs else |