mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix code clarity in dir type check
This commit is contained in:
parent
0689928527
commit
eab5ae5298
1 changed files with 5 additions and 9 deletions
|
@ -124,18 +124,14 @@ maybe_process_dir({[], undefined}=ModuleSet, Config, CurrentCodePath,
|
|||
process_dir0(Dir, Command, DirSet, Config, CurrentCodePath, ModuleSet);
|
||||
maybe_process_dir({_, ModuleSetFile}=ModuleSet, Config, CurrentCodePath,
|
||||
Dir, Command, DirSet) ->
|
||||
case lists:reverse(ModuleSetFile) of
|
||||
"ppa." ++ _ ->
|
||||
%% .app file
|
||||
case lists:suffix(".app", ModuleSetFile)
|
||||
orelse lists:suffix(".app.src", ModuleSetFile) of
|
||||
true ->
|
||||
%% .app or .app.src file, check if is_skipped_app
|
||||
maybe_process_dir0(ModuleSetFile, ModuleSet,
|
||||
Config, CurrentCodePath, Dir,
|
||||
Command, DirSet);
|
||||
"crs.ppa." ++ _ ->
|
||||
%% .app.src file
|
||||
maybe_process_dir0(ModuleSetFile, ModuleSet,
|
||||
Config, CurrentCodePath, Dir,
|
||||
Command, DirSet);
|
||||
_ ->
|
||||
false ->
|
||||
%% not an app dir, no need to consider apps=/skip_apps=
|
||||
process_dir0(Dir, Command, DirSet, Config,
|
||||
CurrentCodePath, ModuleSet)
|
||||
|
|
Loading…
Reference in a new issue