diff --git a/uffd/ldap.py b/uffd/ldap.py
index eed9ca89fc07a60cc8d7675e4cb586c90fe3a5ac..9b46e36657852bf83c3f43bbf2a9a7a4d007594c 100644
--- a/uffd/ldap.py
+++ b/uffd/ldap.py
@@ -37,8 +37,7 @@ def check_hashed(password_hash, password):
 		salt = data[ctx.digest_size:]
 		ctx.update(salt)
 		return data == ctx.digest() + salt
-	else:
-		raise NotImplementedError()
+	raise NotImplementedError()
 
 
 class FlaskQuery(Query):