From 0678efbe38c4832baba0206f4f0aca37fce9965d Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 5 May 2021 17:17:38 +0200 Subject: make vet happy --- skate/cmd/skate-verify/main.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'skate') diff --git a/skate/cmd/skate-verify/main.go b/skate/cmd/skate-verify/main.go index ab198fd..1288404 100644 --- a/skate/cmd/skate-verify/main.go +++ b/skate/cmd/skate-verify/main.go @@ -35,11 +35,11 @@ var ( // XXX: This should be cleanup up soon. matchResults = map[string]skate.MatchResult{ - "doi": skate.MatchResult{skate.StatusExact, skate.ReasonDOI}, - "pmid": skate.MatchResult{skate.StatusExact, skate.ReasonPMID}, - "pmcid": skate.MatchResult{skate.StatusExact, skate.ReasonPMCID}, - "arxiv": skate.MatchResult{skate.StatusExact, skate.ReasonArxiv}, - "unknown": skate.MatchResult{skate.StatusUnknown, skate.ReasonUnknown}, + "doi": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonDOI}, + "pmid": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonPMID}, + "pmcid": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonPMCID}, + "arxiv": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonArxiv}, + "unknown": skate.MatchResult{Status: skate.StatusUnknown, Reason: skate.ReasonUnknown}, } ) @@ -124,7 +124,8 @@ func main() { } defer f.Close() defer g.Close() - if err = skate.ZippyFixedWiki(f, g, skate.MatchResult{skate.StatusExact, skate.ReasonDOI}, "wiki", bw); err != nil { + mr := skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonDOI} + if err = skate.ZippyFixedWiki(f, g, mr, "wiki", bw); err != nil { log.Fatal(err) } default: -- cgit v1.2.3