Skip to content

Commit

Permalink
reformat copyPublicKey in MTRTestKeys
Browse files Browse the repository at this point in the history
remove comment - not this method's job to worry about other implementation's potential side-effects
  • Loading branch information
kiel-apple committed Nov 1, 2024
1 parent 7707afc commit c70e031
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/darwin/Framework/CHIPTests/TestHelpers/MTRTestKeys.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ - (NSData *)publicKeyData
return (__bridge_transfer NSData *) SecKeyCopyExternalRepresentation([self publicKey], nil);
}

- (SecKeyRef)copyPublicKey {
// because this varies significantly from the actual implementations,
// it's probably not a great idea to rely on this for memory leak behavior information.
- (SecKeyRef)copyPublicKey
{
CFRetain(_publicKey);
return _publicKey;
}
Expand Down

0 comments on commit c70e031

Please sign in to comment.