Skip to content

Commit c18b1e2

Browse files
author
Raoul Hess
committed
Fixed call to undef fun.
1 parent 34fbd1a commit c18b1e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/divapi_component.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ file(ComponentPath, Tag, File) ->
6767
%% and check the styles-property to find all the css- and sass-files. The sass files are
6868
%% first compiled then all css is concatenated and returned to the user.
6969
css(ComponentPath, Tag, Variables0) ->
70-
case git_utils:get_diversity_json(ComponentPath, Tag) of
70+
case get_diversity_json(ComponentPath, Tag) of
7171
undefined ->
7272
resource_not_found;
7373
DiversityData ->
@@ -90,7 +90,7 @@ css(ComponentPath, Tag, Variables0) ->
9090
end.
9191

9292
thumbnail(ComponentPath) ->
93-
case git_utils:get_diversity_json(ComponentPath, <<"*">>) of
93+
case get_diversity_json(ComponentPath, <<"*">>) of
9494
undefined ->
9595
resource_not_found;
9696
Json ->
@@ -194,7 +194,7 @@ serve_css_test() ->
194194
%% Mock the git_utils module
195195
meck:new(git_utils),
196196
meck:expect(
197-
git_utils, get_diversity_json,
197+
get_diversity_json,
198198
fun (?REPO, ?TAG) -> jiffy:encode(?DIVERSITY_JSON) end
199199
),
200200
meck:expect(

0 commit comments

Comments
 (0)