diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-05-11 00:31:31 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-05-11 00:31:31 +0200 |
commit | 8f2563a44917f72984f698d124b64ef217d0f34a (patch) | |
tree | e64fa8369f0da678696affeb2f607e16a932d3db /skate | |
parent | bf13236e3ef04a3bdc9ead7dcfdb71d296b24b07 (diff) | |
download | refcat-8f2563a44917f72984f698d124b64ef217d0f34a.tar.gz refcat-8f2563a44917f72984f698d124b64ef217d0f34a.zip |
fix comparison
Diffstat (limited to 'skate')
-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:] |