Skip to content

Commit

Permalink
Use sets for dedupe
Browse files Browse the repository at this point in the history
  • Loading branch information
luken11 committed Oct 30, 2022
1 parent ff0c2a2 commit 335420a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TrollStore/TSAppInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ - (NSAttributedString*)detailedInfoDescription
}
}];

__block NSMutableArray* accessibleContainers = [NSMutableArray new];
__block NSMutableSet* accessibleContainers = [NSMutableSet new];
if(!unrestrictedContainerAccess)
{
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
Expand Down Expand Up @@ -898,7 +898,7 @@ - (NSAttributedString*)detailedInfoDescription
// keychain-access-groups
// Unrestricted if single * (maybe?)
__block BOOL unrestrictedKeychainAccess = NO;
__block NSMutableArray* accessibleKeychainGroups = [NSMutableArray new];
__block NSMutableSet* accessibleKeychainGroups = [NSMutableSet new];
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop) {
if([key isEqualToString:@"keychain-access-groups"])
{
Expand All @@ -923,7 +923,7 @@ - (NSAttributedString*)detailedInfoDescription
}
}];

__block NSMutableArray* URLSchemes = [NSMutableArray new];
__block NSMutableSet* URLSchemes = [NSMutableSet new];
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
if([key isEqualToString:@"CFBundleURLTypes"])
{
Expand Down

0 comments on commit 335420a

Please sign in to comment.