File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ defmodule Scenic.Cache.Hash do
176
176
If the verification passes, returns `{:ok, hash}`
177
177
If it fails, returns `{:error, :hash_failure}`
178
178
"""
179
- @ spec verify_file ( path :: bitstring , hash :: bitstring , type :: hash_type ) :: binary | hash_error
179
+ @ spec verify_file ( path :: bitstring , hash :: bitstring , type :: hash_type ) ::
180
+ binary | hash_error
180
181
def verify_file ( path , hash , hash_type ) do
181
182
case file ( path , hash_type ) do
182
183
{ :ok , computed_hash } ->
@@ -197,7 +198,8 @@ defmodule Scenic.Cache.Hash do
197
198
If the verification passes, returns the hash unchanged.
198
199
If it fails, raises an error
199
200
"""
200
- @ spec verify_file! ( path :: bitstring , hash :: bitstring , type :: hash_type ) :: binary | no_return
201
+ @ spec verify_file! ( path :: bitstring , hash :: bitstring , type :: hash_type ) ::
202
+ binary | no_return
201
203
def verify_file! ( path , hash , hash_type ) do
202
204
case file! ( path , hash_type ) == hash do
203
205
true -> hash
You can’t perform that action at this time.
0 commit comments