Skip to content

Commit

Permalink
fix size hash typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hackalog committed Oct 20, 2020
1 parent ea2505b commit f7b3b0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def hash_file(fname, algorithm="sha1", block_size=4096):
String: f"{hash_type}:{hash_value}"
'''
if algorithm == 'size':
hashval = _HASH_FUNCTION_MAP[algorithm]()
hashval = _HASH_FUNCTION_MAP[algorithm]
return f"{algorithm}:{hashval(fname)}"

hashval = _HASH_FUNCTION_MAP[algorithm]()
Expand Down

0 comments on commit f7b3b0d

Please sign in to comment.