module.erl:51: Function init/1 has no local return
check out all used records in this function for right type definitions of its items. For example, if record defined as
-record(state, {
name :: string(),
data :: binary()
}
and usage of state is
init([]) ->
{ok, #state{name = "Name", data = "Data"}}
this warning will appears.