Skip to content

Commit

Permalink
objc indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Nov 14, 2024
1 parent a826fd1 commit 4dfef22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MatrixSDK/Crypto/SecretStorage/MXSecretStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,13 @@ - (MXHTTPOperation*)createKeyWithKeyId:(nullable NSString*)keyId
{
uint8_t randomBytes[32];
OSStatus status = SecRandomCopyBytes(kSecRandomDefault, sizeof(randomBytes), randomBytes);

if (status == errSecSuccess) {

if (status == errSecSuccess)
{
privateKey = [NSData dataWithBytes:randomBytes length:sizeof(randomBytes)];
} else {
}
else
{
MXLogDebug(@"Failed to generate random bytes with error: %d", (int)status);
}
}
Expand Down

0 comments on commit 4dfef22

Please sign in to comment.