Permalink
Browse files

WHISTLE-42: consider 0.0 empty

  • Loading branch information...
1 parent 703af68 commit 9b9020bd501e0bd1f8f863243542079821ac6d30 @k-anderson k-anderson committed Aug 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/whistle-1.0.0/src/wh_util.erl
@@ -529,6 +529,7 @@ is_empty(<<"NULL">>) -> true;
is_empty(null) -> true;
is_empty(false) -> true;
is_empty(undefined) -> true;
+is_empty(Float) when is_float(Float), Float == 0.0 -> true;
is_empty(MaybeJObj) ->
case wh_json:is_json_object(MaybeJObj) of
false -> false; %% if not a json object, its not empty

0 comments on commit 9b9020b

Please sign in to comment.