diff options
Diffstat (limited to 'skate/reduce.go')
-rw-r--r-- | skate/reduce.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skate/reduce.go b/skate/reduce.go index 2a8ac1c..8dd90f7 100644 --- a/skate/reduce.go +++ b/skate/reduce.go @@ -293,8 +293,7 @@ func ZippyVerifyRefsOpenLibrary(olr, refs io.Reader, w io.Writer) error { keyer = makeKeyFunc("\t", 1) cleanIdentifier = func(s string) string { // Turn ids like /books/OL31189321M into OL31189321M - s = strings.TrimSpace(s) - if len(s) == 0 { + if s = strings.TrimSpace(s); len(s) == 0 { return "" } var ( @@ -344,6 +343,7 @@ func ZippyVerifyRefsOpenLibrary(olr, refs io.Reader, w io.Writer) error { bref.MatchProvenance = ref.Extra.Skate.Ref.Source bref.MatchStatus = result.Status.Short() bref.MatchReason = result.Reason.Short() + bref.TargetUnstructured = "xxx" if err := enc.Encode(bref); err != nil { return err } |