Skip to content

Commit 2242ec7

Browse files
committed
run formatter
1 parent 927dfb3 commit 2242ec7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/scenic/cache/hash.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ defmodule Scenic.Cache.Hash do
6868
Returns the hash wrapped in a `{:ok, hash}` tuple.
6969
"""
7070
@spec binary(data :: binary, type :: hash_type) ::
71-
{:ok, bitstring()} | {:error, :invalid_hash_type}
71+
{:ok, bitstring()} | {:error, :invalid_hash_type}
7272
def binary(data, type) do
7373
case valid_hash_type?(type) do
7474
true -> {:ok, type |> :crypto.hash(data) |> Base.url_encode64(padding: false)}
@@ -90,7 +90,7 @@ defmodule Scenic.Cache.Hash do
9090

9191
# --------------------------------------------------------
9292
@spec file(path :: bitstring, type :: hash_type) ::
93-
{:ok, bitstring()} | {:error, :invalid_hash_type}
93+
{:ok, bitstring()} | {:error, :invalid_hash_type}
9494
def file(path, hash_type) do
9595
do_compute_file(
9696
path,
@@ -148,7 +148,7 @@ defmodule Scenic.Cache.Hash do
148148
If it fails, returns `{:error, :hash_failure}`
149149
"""
150150
@spec verify(data :: binary, hash :: bitstring, type :: hash_type) ::
151-
{:ok, binary} | {:error, :hash_failure}
151+
{:ok, binary} | {:error, :hash_failure}
152152
def verify(data, hash, hash_type) do
153153
case binary(data, hash_type) do
154154
{:ok, ^hash} -> {:ok, data}

0 commit comments

Comments
 (0)