diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-07-17 19:11:30 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-07-18 18:58:20 +0200 |
commit | a9a7d7c02b45af1bddec4d6133e98007a364dd9c (patch) | |
tree | f31b2337e4d599cde9b4b6eca7a20f79aefc93eb | |
parent | e21166ae6fa76f4e0334904565a6a58a125f96b0 (diff) |
Apply Tidier suggestions
-rw-r--r-- | src/rebar_config.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl index 56a8828..9d2acf3 100644 --- a/src/rebar_config.erl +++ b/src/rebar_config.erl @@ -60,7 +60,7 @@ new(ConfigFile) when is_list(ConfigFile) -> Other -> ?ABORT("Failed to load ~s: ~p~n", [ConfigFile, Other]) end; -new(#config{}=ParentConfig)-> +new(#config{opts=Opts0}=ParentConfig)-> %% If we are at the top level we might want to load another rebar.config %% We can be certain that we are at the top level if we don't have any %% configs yet since if we are at another level we must have some config. @@ -83,10 +83,10 @@ new(#config{}=ParentConfig)-> %% in the proplist (since order matters) between %% the new and old defs. Terms ++ [local] ++ - [Opt || Opt <- ParentConfig#config.opts, Opt /= local]; + [Opt || Opt <- Opts0, Opt /= local]; {error, enoent} -> [local] ++ - [Opt || Opt <- ParentConfig#config.opts, Opt /= local]; + [Opt || Opt <- Opts0, Opt /= local]; Other -> ?ABORT("Failed to load ~s: ~p\n", [ConfigFile, Other]) end, |