Skip to content

Commit dd052e3

Browse files
author
Tuncer Ayaz
authored
Merge pull request #49 from tuncer/fix-48
Revert "Fail on missing files (#37)"
2 parents b4e1abe + 57f6daf commit dd052e3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/pc_port_specs.erl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ port_spec_from_legacy(Config) ->
121121

122122
port_sources(WorkDir, Sources) ->
123123
lists:flatmap(fun (Source) ->
124-
case filelib:wildcard(Source, WorkDir)of
125-
[] -> [Source];
126-
FileList -> FileList
127-
end
124+
filelib:wildcard(Source, WorkDir)
128125
end, Sources).
129126

130127
maybe_switch_extension({win32, nt}, Target) ->
@@ -154,10 +151,7 @@ get_port_spec(Config, OsType, {_Arch, Target, Sources, Opts}) ->
154151
Source1 = expand_env(Source, Env),
155152
Source2 = rebar_utils:escape_chars(
156153
filename:join(rebar_state:dir(Config), Source1)),
157-
case filelib:wildcard(Source1) of
158-
[] -> [Source2];
159-
FileList -> FileList
160-
end
154+
filelib:wildcard(Source2)
161155
end, Sources),
162156
LinkLang =
163157
case lists:any(

0 commit comments

Comments
 (0)