Satisfy "Codacy/PR Quality Review"
This commit is contained in:
+1
-1
@@ -552,7 +552,7 @@ def is_sha1(sha1):
|
||||
if len(sha1) != 40:
|
||||
return False
|
||||
try:
|
||||
temp = int(sha1, 16)
|
||||
int(sha1, 16)
|
||||
except ValueError:
|
||||
return False
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user