aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/mutation.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-06-23 21:28:01 +0200
committerMichael Muré <batolettre@gmail.com>2019-06-23 21:28:01 +0200
commit9f4da4ce4fbbf23798b80289af170c9c42ac73eb (patch)
tree6cf71b3c05b0cd2e4d93111cfa45c9c08762d1f0 /graphql/resolvers/mutation.go
parentbc03a89aa76cad37daf8cd4efdea463a9569c519 (diff)
downloadgit-bug-9f4da4ce4fbbf23798b80289af170c9c42ac73eb.tar.gz
cache: consistently use "ref" to fetch a repository
Diffstat (limited to 'graphql/resolvers/mutation.go')
-rw-r--r--graphql/resolvers/mutation.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphql/resolvers/mutation.go b/graphql/resolvers/mutation.go
index 9ed4e780..b4f8845a 100644
--- a/graphql/resolvers/mutation.go
+++ b/graphql/resolvers/mutation.go
@@ -15,9 +15,9 @@ type mutationResolver struct {
cache *cache.MultiRepoCache
}
-func (r mutationResolver) getRepo(repoRef *string) (*cache.RepoCache, error) {
- if repoRef != nil {
- return r.cache.ResolveRepo(*repoRef)
+func (r mutationResolver) getRepo(ref *string) (*cache.RepoCache, error) {
+ if ref != nil {
+ return r.cache.ResolveRepo(*ref)
}
return r.cache.DefaultRepo()