Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remember what 'good' and 'bad' mean.
  • Loading branch information
pablo-meier committed Sep 10, 2015
1 parent 7f846fb commit 8d1b471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/ghostlight_db/src/ghostlight_db_utils.erl
Expand Up @@ -81,10 +81,10 @@ exec_batch(Batch, #db_state{connection=C,
end.

failures_from(Results) ->
lists:filter(fun good_result/1, Results).
lists:filter(fun bad_result/1, Results).

good_result({ok, _}) -> false;
good_result(_Else) -> true.
bad_result({ok, _}) -> false;
bad_result(_Else) -> true.


parse_person_or_org(Entity) ->
Expand Down

0 comments on commit 8d1b471

Please sign in to comment.