Commit 1a45d7b8 authored by Valere's avatar Valere
Browse files

code review

parent 99552a7c
Pipeline #15217 passed with stages
in 2 minutes and 57 seconds
......@@ -46,11 +46,7 @@ limitations under the License.
NSDictionary *unpublished = bob.unpublishedFallbackKey;
__block NSString *bobKeyValue = nil;
[unpublished[@"curve25519"] enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
bobKeyValue = obj;
}];
__block NSString *bobKeyValue = ((NSDictionary *) unpublished[@"curve25519"]).allValues.lastObject;
XCTAssertNotNil(bobKeyValue);
......@@ -58,10 +54,7 @@ limitations under the License.
NSDictionary *unpublishedAfter = bob.unpublishedFallbackKey;
__block NSString *bobKeyValueAfter = nil;
[unpublishedAfter[@"curve25519"] enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
bobKeyValueAfter = obj;
}];
__block NSString *bobKeyValueAfter = ((NSDictionary *) unpublishedAfter[@"curve25519"]).allValues.lastObject;
XCTAssertNil(bobKeyValueAfter);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment