diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-05-05 17:17:38 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-05-05 17:17:38 +0200 |
commit | 0678efbe38c4832baba0206f4f0aca37fce9965d (patch) | |
tree | a15ab841a6b217974b5c0f10e397a6661bf1df8a /skate | |
parent | 652b7a3d5a5428d5ee152c7aacabe9fad15d3806 (diff) | |
download | refcat-0678efbe38c4832baba0206f4f0aca37fce9965d.tar.gz refcat-0678efbe38c4832baba0206f4f0aca37fce9965d.zip |
make vet happy
Diffstat (limited to 'skate')
-rw-r--r-- | skate/cmd/skate-verify/main.go | 13 |
1 files changed, 7 insertions, 6 deletions
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: |