Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
trzysiek committed Dec 28, 2024
1 parent 046303e commit d27823c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions quesma/model/bucket_aggregations/terms.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@ func (query Terms) TranslateSqlResponseToJson(rows []model.QueryResultRow) model

var keyIsBool bool
for _, row := range rows {
key := query.key(row)
if key == nil {
continue
}

switch query.key(row).(type) {
case bool, *bool:
keyIsBool = true
break
case nil:
continue
default:
keyIsBool = false
break
}
break
}

var response []model.JsonMap
Expand Down

0 comments on commit d27823c

Please sign in to comment.