Commit 5a8f41fb authored by Alex Kalderimis's avatar Alex Kalderimis

Use kwargs in blobs resolver

parent 0278590e
......@@ -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
......
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