aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skate/map.go4
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),