diff options
Diffstat (limited to 'skate/map.go')
-rw-r--r-- | skate/map.go | 2 |
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:] |