Skip to content

Commit

Permalink
core: remove warning from template compiler runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Sep 23, 2016
1 parent 9d4b38b commit 05a009e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/support/z_template_compiler_runtime.erl
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,6 @@ cache_tag(MaxAge, Name, Args, Fun, TplVars, Context) ->
do_cache(Args, Context) ->
do_cache1(z_convert:to_bool(proplists:get_value('if', Args, true)), Args, Context).

do_cache1(true, _Args, _Context) ->
true;
do_cache1(true, Args, Context) ->
case z_convert:to_bool(proplists:get_value(if_anonymous, Args, false)) of
true -> z_acl:user(Context) =:= undefined;
Expand Down

0 comments on commit 05a009e

Please sign in to comment.