瀏覽代碼

Apply Tidier suggestions

pull/3/head
Tuncer Ayaz 14 年之前
父節點
當前提交
a9a7d7c02b
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      src/rebar_config.erl

+ 3
- 3
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,

Loading…
取消
儲存