aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-11 00:31:31 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-11 00:31:31 +0200
commit8f2563a44917f72984f698d124b64ef217d0f34a (patch)
treee64fa8369f0da678696affeb2f607e16a932d3db /skate
parentbf13236e3ef04a3bdc9ead7dcfdb71d296b24b07 (diff)
downloadrefcat-8f2563a44917f72984f698d124b64ef217d0f34a.tar.gz
refcat-8f2563a44917f72984f698d124b64ef217d0f34a.zip
fix comparison
Diffstat (limited to 'skate')
-rw-r--r--skate/map.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/skate/map.go b/skate/map.go
index f401af7..c448848 100644
--- a/skate/map.go
+++ b/skate/map.go
@@ -123,7 +123,7 @@ func Identity(p []byte) ([][]byte, error) {
// CreateFixedMapper extract the value from a given fixed json key, e.g.
// "biblio.doi" and the like. Returns a function that maps doc to (value, doc).
func CreateFixedMapper(field string) Mapper {
- if len(field) > 0 && field[0] == "." {
+ if len(field) > 0 && field[0] == '.' {
// gjson is not jq, we do not use a leading dot, so remove it, if
// accidentally used here
field = field[1:]