Skip to content

Commit 54d3861

Browse files
committed
run formatter
1 parent c39471c commit 54d3861

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/scenic/cache/file.ex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule Scenic.Cache.File do
2323
images/
2424
asset.jpg
2525
26-
26+
2727
At compile time you need to build the actual path of your asset by combining
2828
the build directory with the partial path inside of `priv/`
2929
@@ -110,9 +110,10 @@ defmodule Scenic.Cache.File do
110110
# hashes. Is also slower because it has to load the file and compute the hash
111111
# to use as a key even it is is already loaded into the cache.
112112
def load(path, :insecure, opts) do
113-
if Mix.env != :test do
114-
IO.puts "WARNING: Cache asset loaded as :insecure \"#{path}\""
113+
if Mix.env() != :test do
114+
IO.puts("WARNING: Cache asset loaded as :insecure \"#{path}\"")
115115
end
116+
116117
with {:ok, data} <- read(path, :insecure, opts) do
117118
hash = Hash.binary(data, opts[:hash] || :sha)
118119

@@ -173,8 +174,9 @@ defmodule Scenic.Cache.File do
173174
# to use as a key even it is is already loaded into the cache.
174175
def read(path, :insecure, opts) do
175176
if Mix.env() != :test do
176-
IO.puts "WARNING: Cache asset read as :insecure \"#{path}\""
177+
IO.puts("WARNING: Cache asset read as :insecure \"#{path}\"")
177178
end
179+
178180
with {:ok, data} <- File.read(path) do
179181
do_unzip(data, opts)
180182
else

0 commit comments

Comments
 (0)