From 596a892c5ead19d67c4be4ceba7056a841fd04cb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 8 Aug 2017 17:38:13 +0200 Subject: [PATCH] Sodium ext: Isolate a return statement for consistency --- ext/sodium/libsodium.c | 3 +-- 1 file changed, 1 insertion(+), 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) -- 2.50.1