Skip to content

Commit 53596c6

Browse files
committed
style: run lint:ios:fix
1 parent 080d44b commit 53596c6

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

packages/auth/ios/RNFBAuth/RNFBAuthModule.m

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,6 @@ - (NSDictionary *)multiFactorResolverToDict:(FIRMultiFactorResolver *)resolver {
14621462
}
14631463
#endif
14641464

1465-
14661465
- (void)promiseRejectAuthException:(RCTPromiseRejectBlock)reject error:(NSError *)error {
14671466
NSDictionary *jsError = [self getJSError:error];
14681467

@@ -1730,24 +1729,24 @@ - (NSDictionary *)firebaseUserToDict:(FIRUser *)user {
17301729
NSMutableArray *enrolledFactors = [NSMutableArray array];
17311730

17321731
for (FIRMultiFactorInfo *hint in hints) {
1733-
NSString *enrollmentTime =
1732+
NSString *enrollmentTime =
17341733
[[[NSISO8601DateFormatter alloc] init] stringFromDate:hint.enrollmentDate];
1735-
1736-
NSMutableDictionary *factorDict = [@{
1737-
@"uid" : hint.UID,
1738-
@"factorId": hint.factorID,
1739-
@"displayName" : hint.displayName == nil ? [NSNull null] : hint.displayName,
1740-
@"enrollmentTime" : enrollmentTime,
1741-
// @deprecated enrollmentDate kept for backwards compatibility, please use enrollmentTime
1742-
@"enrollmentDate" : enrollmentTime,
1743-
} mutableCopy];
1744-
1745-
// only support phone mutli factor
1746-
if ([hint isKindOfClass:[FIRPhoneMultiFactorInfo class]]) {
1747-
FIRPhoneMultiFactorInfo *phoneHint = (FIRPhoneMultiFactorInfo *)hint;
1748-
factorDict[@"phoneNumber"] = phoneHint.phoneNumber;
1749-
[enrolledFactors addObject:factorDict];
1750-
}
1734+
1735+
NSMutableDictionary *factorDict = [@{
1736+
@"uid" : hint.UID,
1737+
@"factorId" : hint.factorID,
1738+
@"displayName" : hint.displayName == nil ? [NSNull null] : hint.displayName,
1739+
@"enrollmentTime" : enrollmentTime,
1740+
// @deprecated enrollmentDate kept for backwards compatibility, please use enrollmentTime
1741+
@"enrollmentDate" : enrollmentTime,
1742+
} mutableCopy];
1743+
1744+
// only support phone mutli factor
1745+
if ([hint isKindOfClass:[FIRPhoneMultiFactorInfo class]]) {
1746+
FIRPhoneMultiFactorInfo *phoneHint = (FIRPhoneMultiFactorInfo *)hint;
1747+
factorDict[@"phoneNumber"] = phoneHint.phoneNumber;
1748+
[enrolledFactors addObject:factorDict];
1749+
}
17511750
}
17521751
return enrolledFactors;
17531752
}

0 commit comments

Comments
 (0)