diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-05-06 20:16:25 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-05-06 20:16:25 +0200 |
commit | a4337b431abec034a81c74df03116b2229030216 (patch) | |
tree | 0e19a494c00a0822e292321e3ffbb2484486c373 /skate | |
parent | 6e100b23bf846f36025092a83d433e6cf4f0a9b6 (diff) | |
download | refcat-a4337b431abec034a81c74df03116b2229030216.tar.gz refcat-a4337b431abec034a81c74df03116b2229030216.zip |
map: fix assignment
Diffstat (limited to 'skate')
-rw-r--r-- | skate/map.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skate/map.go b/skate/map.go index 459558d..356839c 100644 --- a/skate/map.go +++ b/skate/map.go @@ -186,10 +186,10 @@ func MapperTitleSandcrawler(p []byte) (fields [][]byte, err error) { // .biblio.url?] | @tsv'" ... func MapperURLFromRef(p []byte) (fields [][]byte, err error) { var ref Ref - if err := json.Unmarshal(p, &ref); err != nil { + if err = json.Unmarshal(p, &ref); err != nil { return nil, err } - fields := [][]byte{ + fields = [][]byte{ []byte(ref.WorkIdent), []byte(ref.ReleaseIdent), []byte(ref.Biblio.Url), |