Skip to content

Commit

Permalink
KAZOO-1800: spec for delete_keys/2, and clause for empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti authored and k-anderson committed Dec 23, 2013
1 parent 404febf commit 0a49250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/whistle-1.0.0/src/props.erl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ delete(K, Props) ->
'false' -> lists:delete(K, Props)
end.

-spec delete_keys(ne_binaries(), wh_proplist()) -> wh_proplist().
delete_keys([], Props) -> Props;
delete_keys([_|_]=Ks, Props) -> lists:foldl(fun ?MODULE:delete/2, Props, Ks).

-spec is_defined(wh_proplist_key(), wh_proplist()) -> boolean().
Expand Down

0 comments on commit 0a49250

Please sign in to comment.