remove cases from clean_string
This commit is contained in:
parent
82b7044d42
commit
ef566d8cd3
2 changed files with 4 additions and 24 deletions
|
@ -53,12 +53,7 @@ start(Term, {Handler, State}, Config) ->
|
|||
|
||||
|
||||
value(String, {Handler, State}, Config) when is_binary(String) ->
|
||||
case clean_string(String, Config) of
|
||||
{error, badarg} ->
|
||||
?error([String, {Handler, State}, Config]);
|
||||
CleanString ->
|
||||
Handler:handle_event({string, CleanString}, State)
|
||||
end;
|
||||
Handler:handle_event({string, clean_string(String, Config)}, State);
|
||||
value(Float, {Handler, State}, _Config) when is_float(Float) ->
|
||||
Handler:handle_event({float, Float}, State);
|
||||
value(Int, {Handler, State}, _Config) when is_integer(Int) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue