Redundant variable assignment logic in symbol search
Created by: blanet
File cmd/frontend/graphqlbackend/search_symbols.go has always assigned commit.inputRev
, there are no need to do this again below(L184, L187).
commit := &gitCommitResolver{
repo: &repositoryResolver{repo: repoRevs.Repo},
oid: gitObjectID(commitID),
inputRev: &inputRev,
// NOTE: Not all fields are set, for performance.
}
if inputRev != "" {
commit.inputRev = &inputRev
}