1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

Sodium ext: Isolate a return statement for consistency

This commit is contained in:
Frank Denis
2017-08-08 17:38:13 +02:00
parent a0d1e0915c
commit 596a892c5e
+1 -2
View File
@@ -622,9 +622,8 @@ PHP_FUNCTION(sodium_memcmp)
if (len1 != len2) {
zend_throw_exception(sodium_exception_ce, "arguments have different sizes", 0);
return;
} else {
RETURN_LONG(sodium_memcmp(buf1, buf2, len1));
}
RETURN_LONG(sodium_memcmp(buf1, buf2, len1));
}
PHP_FUNCTION(sodium_crypto_shorthash)