Skip to content

Commit

Permalink
Change int_ify/1 -> to_integer/1
Browse files Browse the repository at this point in the history
  • Loading branch information
slfritchie committed Dec 28, 2010
1 parent 37b7123 commit 7887bc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/riak_err_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ sasl_limited_str(crash_report, Report, FmtMaxBytes) ->
riak_err_stdlib:proc_lib_format(Report, FmtMaxBytes).

get_int_env(Name, Default) ->
int_ify(get_env_or_arg(Name, Default)).
to_integer(get_env_or_arg(Name, Default)).

get_env_or_arg(Name, Default) ->
case application:get_env(riak_err, Name) of
Expand All @@ -366,9 +366,9 @@ find_in_pairs([_K, _V|Tail], Key, Default) ->
find_in_pairs(_, _, Default) ->
Default.

int_ify(X) when is_list(X) ->
to_integer(X) when is_list(X) ->
list_to_integer(X);
int_ify(X) when is_integer(X) ->
to_integer(X) when is_integer(X) ->
X.

open_log_file(Path) ->
Expand Down

0 comments on commit 7887bc4

Please sign in to comment.