aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/application_starter.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-04-29 15:25:27 +0000
committerErlang/OTP <[email protected]>2010-04-29 15:25:27 +0000
commitb328564bfe321c2df597c77fea57566ee8d00f2b (patch)
tree48d06057fad0819ebdf2811992631e6ae8ebb2c9 /lib/kernel/src/application_starter.erl
parentc8fbe3f82050477a713b22b5d3b671718588aa79 (diff)
parent75ea6a39d1cf4bd4a67391595b90d8d90155d012 (diff)
downloadotp-b328564bfe321c2df597c77fea57566ee8d00f2b.tar.gz
otp-b328564bfe321c2df597c77fea57566ee8d00f2b.tar.bz2
otp-b328564bfe321c2df597c77fea57566ee8d00f2b.zip
Merge branch 'ks/kernel' into dev
* ks/kernel: kernel: Clean up as suggested by tidier OTP-8606 ks/kernel
Diffstat (limited to 'lib/kernel/src/application_starter.erl')
-rw-r--r--lib/kernel/src/application_starter.erl22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/kernel/src/application_starter.erl b/lib/kernel/src/application_starter.erl
index 8d839e4662..564366f304 100644
--- a/lib/kernel/src/application_starter.erl
+++ b/lib/kernel/src/application_starter.erl
@@ -1,19 +1,19 @@
%%
%% %CopyrightBegin%
-%%
-%% Copyright Ericsson AB 1998-2009. All Rights Reserved.
-%%
+%%
+%% Copyright Ericsson AB 1998-2010. All Rights Reserved.
+%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License along with this software. If not, it can be
%% retrieved online at http://www.erlang.org/.
-%%
+%%
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
%% the License for the specific language governing rights and limitations
%% under the License.
-%%
+%%
%% %CopyrightEnd%
%%
%% ----------------------------------------------------------------------
@@ -42,8 +42,8 @@ start([], _Type, _Apps) ->
ok;
start([{Phase,_PhaseArgs}|Phases], Type, Apps) ->
case start_apps(Phase, Type, Apps) of
- {error, Error} ->
- {error, Error};
+ {error, _} = Error ->
+ Error;
_ ->
start(Phases, Type, Apps)
end.
@@ -56,8 +56,8 @@ start_apps(_Phase, _Type, []) ->
ok;
start_apps(Phase, Type, [App | Apps]) ->
case catch run_start_phase(Phase, Type, App) of
- {error, Error} ->
- {error, Error};
+ {error, _} = Error ->
+ Error;
_ ->
start_apps(Phase, Type, Apps)
end.
@@ -91,10 +91,10 @@ run_the_phase(Phase, Type, App, Mod) ->
{ok, Sp} ->
Sp
end,
- case lists:keysearch(Phase, 1, Start_phases) of
+ case lists:keyfind(Phase, 1, Start_phases) of
false ->
ok;
- {value, {Phase, PhaseArgs}} ->
+ {Phase, PhaseArgs} ->
case catch Mod:start_phase(Phase, Type, PhaseArgs) of
ok ->
ok;