Skip to content

Commit

Permalink
split conditions for removal of quotes in Utils.clean onto separate l…
Browse files Browse the repository at this point in the history
…ines for clarity #1
  • Loading branch information
nelsonic committed Oct 15, 2019
1 parent e377226 commit 456d630
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ defmodule Utils do
|> Jason.decode!
|> Enum.uniq
|> Enum.map(fn q -> # quote must not be from unknown authors
if q["author"] != "" && q["author"] != nil && q["author"] != "unknown" do
if q["author"] != ""
&& q["author"] != nil
&& q["author"] != "unknown"
&& q["author"] != "anonymous"
do
q
end
end)
Expand Down

0 comments on commit 456d630

Please sign in to comment.