From 8f2563a44917f72984f698d124b64ef217d0f34a Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 11 May 2021 00:31:31 +0200 Subject: fix comparison --- skate/map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'skate') 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:] -- cgit v1.2.3