Permalink
Browse files

Change int_ify/1 -> to_integer/1

  • Loading branch information...
slfritchie committed Dec 28, 2010
1 parent 37b7123 commit 7887bc48fcf0e68b896913bfe2ad504dd08c25f3
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/riak_err_handler.erl
View
@@ -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
@@ -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) ->

0 comments on commit 7887bc4

Please sign in to comment.