Skip to content

Instantly share code, notes, and snippets.

@eee-c
Forked from davidcoallier/doppler-1.erl
Created March 8, 2010 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eee-c/325389 to your computer and use it in GitHub Desktop.
Save eee-c/325389 to your computer and use it in GitHub Desktop.
fun({Doc}) ->
case {proplists:get_value(<<"id">>, Doc)} of
{undefined} ->
ok;
{Id} ->
Emit(Id, Doc);
_ ->
ok
end
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment