Skip to content

Commit 48cf363

Browse files
authored
consistent code style tweak
1 parent b15b524 commit 48cf363

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Modules/sha3module.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,11 @@ _SHAKE_digest(SHA3object *self, unsigned long digestlen, int hex)
400400
* - the algorith is not shake -- not the case here
401401
* - the output length is zero -- we follow the existing behavior and return
402402
* an empty digest, without raising an error */
403-
if (digestlen > 0)
404-
Hacl_Streaming_Keccak_squeeze(self->hash_state, digest, digestlen);
403+
if (digestlen > 0) {
404+
Hacl_Streaming_Keccak_squeeze(self->hash_state, digest, digestlen);
405+
}
405406
if (hex) {
406-
result = _Py_strhex((const char *)digest, digestlen);
407+
result = _Py_strhex((const char *)digest, digestlen);
407408
} else {
408409
result = PyBytes_FromStringAndSize((const char *)digest,
409410
digestlen);

0 commit comments

Comments
 (0)