Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 15, 2021
1 parent a324e5d commit 93b5208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/controllers/concerns/facetable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,9 @@ def facet_by_key(arr)

def facet_by_bool(arr)
values = { 0 => "no", 1 => "yes" }

arr.map do |hsh|
{
"id" => hsh["key"] ,
"id" => hsh["key"],
"title" => values[hsh["key"]],
"count" => hsh["doc_count"],
}
Expand Down
3 changes: 1 addition & 2 deletions app/graphql/types/base_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ def facet_by_key(arr)

def facet_by_bool(arr)
values = { 0 => "no", 1 => "yes" }

arr.map do |hsh|
{
"id" => hsh["key"] ,
"id" => hsh["key"],
"title" => values[hsh["key"]],
"count" => hsh["doc_count"],
}
Expand Down

0 comments on commit 93b5208

Please sign in to comment.