Skip to content

Commit

Permalink
Remove unneeded filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Oct 31, 2023
1 parent 454b51c commit b61bb5d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/src/survey/entry.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pub fn save(
let id = nanoid.generate()
let json =
answers
|> list.filter(fn(pair) { pair.0 != "ip" || pair.0 != "id" })
|> list.map(fn(pair) { #(pair.0, json.string(pair.1)) })
|> list.key_set("id", json.string(id))
|> list.key_set("ip", json.string(ip))
Expand Down

0 comments on commit b61bb5d

Please sign in to comment.