diff options
| author | Frank Denis <github@pureftpd.org> | 2017-08-08 17:38:13 +0200 |
|---|---|---|
| committer | Frank Denis <github@pureftpd.org> | 2017-08-08 17:38:13 +0200 |
| commit | 596a892c5ead19d67c4be4ceba7056a841fd04cb (patch) | |
| tree | b60652fde29d8f504f2fd700fce763a194a20c12 /ext/sodium | |
| parent | a0d1e0915c82e4ae867efe9cf3d9b65a5522faef (diff) | |
| download | php-git-596a892c5ead19d67c4be4ceba7056a841fd04cb.tar.gz | |
Sodium ext: Isolate a return statement for consistency
Diffstat (limited to 'ext/sodium')
| -rw-r--r-- | ext/sodium/libsodium.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sodium/libsodium.c b/ext/sodium/libsodium.c index 2f311e059c..4dea01ea87 100644 --- a/ext/sodium/libsodium.c +++ b/ext/sodium/libsodium.c @@ -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) |
