diff options
author | Michael Muré <batolettre@gmail.com> | 2019-06-23 21:28:01 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-06-23 21:28:01 +0200 |
commit | 9f4da4ce4fbbf23798b80289af170c9c42ac73eb (patch) | |
tree | 6cf71b3c05b0cd2e4d93111cfa45c9c08762d1f0 /graphql/resolvers/mutation.go | |
parent | bc03a89aa76cad37daf8cd4efdea463a9569c519 (diff) | |
download | git-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.go | 6 |
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() |