diff options
author | Ricardo Catalinas Jiménez <[email protected]> | 2012-02-24 14:35:34 +0100 |
---|---|---|
committer | Ricardo Catalinas Jiménez <[email protected]> | 2012-02-24 14:35:34 +0100 |
commit | f195d88713035ec23e4d1c2c2e09f73bb2178481 (patch) | |
tree | 7c098e41a552cfcc2860ec8073b5bf59ed71f1bd /lib/stdlib/src | |
parent | 3398aa592af611b84edad4fa56e88379df6d1735 (diff) | |
download | otp-f195d88713035ec23e4d1c2c2e09f73bb2178481.tar.gz otp-f195d88713035ec23e4d1c2c2e09f73bb2178481.tar.bz2 otp-f195d88713035ec23e4d1c2c2e09f73bb2178481.zip |
Remove trailing spaces
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/supervisor.erl | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/stdlib/src/supervisor.erl b/lib/stdlib/src/supervisor.erl index ac5b078c29..17e37e154e 100644 --- a/lib/stdlib/src/supervisor.erl +++ b/lib/stdlib/src/supervisor.erl @@ -566,13 +566,12 @@ check_flags(What) -> {bad_flags, What}. update_childspec(State, StartSpec) when ?is_simple(State) -> - case check_startspec(StartSpec) of - {ok, [Child]} -> - {ok, State#state{children = [Child]}}; - Error -> - {error, Error} - end; - + case check_startspec(StartSpec) of + {ok, [Child]} -> + {ok, State#state{children = [Child]}}; + Error -> + {error, Error} + end; update_childspec(State, StartSpec) -> case check_startspec(StartSpec) of {ok, Children} -> @@ -592,7 +591,7 @@ update_childspec1([Child|OldC], Children, KeepOld) -> end; update_childspec1([], Children, KeepOld) -> %% Return them in (kept) reverse start order. - lists:reverse(Children ++ KeepOld). + lists:reverse(Children ++ KeepOld). update_chsp(OldCh, Children) -> case lists:map(fun(Ch) when OldCh#child.name =:= Ch#child.name -> |