[ticket/17173] Fix code according to coding guidelines

PHPBB3-17173
This commit is contained in:
Marc Alexander 2023-09-21 10:59:45 +02:00
parent 432d09b09c
commit 2a95238113
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -35,7 +35,8 @@ $hash = hash_file('sha384', $file_path, true);
try
{
$signature = sodium_crypto_sign_detached($hash, $secret_key);
} catch (SodiumException $e)
}
catch (SodiumException $e)
{
$keypair = sodium_crypto_sign_keypair();