Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dialyzer janitor: fix spec for riak_object:new/4

  • Loading branch information...
commit 97ee7814feeba9b90a0899cbb1fb974abdf84971 1 parent 1e706f4
@slfritchie slfritchie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/riak_object.erl
2  src/riak_object.erl
@@ -65,7 +65,7 @@ new(B, K, V) when is_binary(B), is_binary(K) ->
new(B, K, V, no_initial_metadata).
%% @doc Constructor for new riak objects with an initial content-type.
--spec new(Bucket::bucket(), Key::key(), Value::value(), string() | dict()) -> riak_object().
+-spec new(Bucket::bucket(), Key::key(), Value::value(), string() | dict() | 'no_initial_metadata') -> riak_object().
new(B, K, V, C) when is_binary(B), is_binary(K), is_list(C) ->
new(B, K, V, dict:from_list([{?MD_CTYPE, C}]));
Please sign in to comment.
Something went wrong with that request. Please try again.