Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 21, 2018
1 parent b82a8eb commit a16a449
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/elements/element_script.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ render_element(Record) ->
wf_tags:emit_tag(<<"script">>,
case Record#script.src of
[] -> nitro:render(case Record#script.body of undefined -> []; B -> B end);
X -> [] end, List).
_ -> [] end, List).
2 changes: 0 additions & 2 deletions src/nitro.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
-behaviour(application).
-export([start/2, stop/1, init/1]).

-record(ev, { module, msg, trigger, name }).

start(_StartType, _StartArgs) -> supervisor:start_link({local, ?MODULE}, ?MODULE, []).
stop(_State) -> ok.
init([]) -> {ok, {{one_for_one, 5, 10}, []}}.
Expand Down
2 changes: 1 addition & 1 deletion src/nitro_static.erl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ last_modified(Req, State={_, {ok, #file_info{mtime=Modified}}, _}) -> {Modified,
get_file(Req, State={P, {ok, #file_info{size=_Size}}, _}) ->
Path = fixpath(P),
StringPath = nitro:to_list(unicode:characters_to_binary(Path,utf8,utf8)),
[_Type,Name|RestPath]=SplitPath = filename:split(StringPath),
[_Type,Name|RestPath] = filename:split(StringPath),
FileName = filename:absname(StringPath),
Raw = case file:read_file(FileName) of
{ok,Bin} -> Bin;
Expand Down

0 comments on commit a16a449

Please sign in to comment.