diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2017-06-30 10:47:37 -0700 |
---|---|---|
committer | VinayGuthal <vinayg@qhode.com> | 2017-06-30 13:47:37 -0400 |
commit | ddbfd4cc666f5227ab0e1f5a98c8a499ccbb32d1 (patch) | |
tree | 9c2ec4e15b6741f413d66f428c45f0278219d728 /Firebase/Database/Core | |
parent | 925f4c8b7558373172dd9410b7844637afaa2424 (diff) |
Add travis trailing whitespace check (#116)
* Add travis trailing whitespace check
* Remove trailing white space
Diffstat (limited to 'Firebase/Database/Core')
-rw-r--r-- | Firebase/Database/Core/FPersistentConnection.m | 14 | ||||
-rw-r--r-- | Firebase/Database/Core/FRepo.h | 2 | ||||
-rw-r--r-- | Firebase/Database/Core/FRepo.m | 4 | ||||
-rw-r--r-- | Firebase/Database/Core/Utilities/FPath.m | 4 | ||||
-rw-r--r-- | Firebase/Database/Core/Utilities/FTree.m | 4 |
5 files changed, 14 insertions, 14 deletions
diff --git a/Firebase/Database/Core/FPersistentConnection.m b/Firebase/Database/Core/FPersistentConnection.m index dc5877f..826b995 100644 --- a/Firebase/Database/Core/FPersistentConnection.m +++ b/Firebase/Database/Core/FPersistentConnection.m @@ -282,7 +282,7 @@ typedef enum { if (firstConnection) { [self sendConnectStats]; } - + [self restoreAuth]; firstConnection = NO; self.lastSessionID = sessionID; @@ -564,7 +564,7 @@ static void reachabilityCallback(SCNetworkReachabilityRef ref, SCNetworkReachabi FOutstandingPut* put = self.outstandingPuts[index]; assert(put != nil); fbt_void_nsstring_nsstring onComplete = put.onCompleteBlock; - + // Do not async this block; copying the block insinde sendAction: doesn't happen in time (or something) so coredumps put.sent = YES; [self sendAction:put.action @@ -611,23 +611,23 @@ static void reachabilityCallback(SCNetworkReachabilityRef ref, SCNetworkReachabi } - (void) putInternal:(id)data forAction:(NSString *)action forPath:(NSString *)pathString withHash:(NSString *)hash withCallback:(fbt_void_nsstring_nsstring)onComplete { - + NSMutableDictionary *request = [NSMutableDictionary dictionaryWithObjectsAndKeys: pathString, kFWPRequestPath, data, kFWPRequestData, nil]; if(hash) { [request setObject:hash forKey:kFWPRequestHash]; } - + FOutstandingPut *put = [[FOutstandingPut alloc] init]; put.action = action; put.request = request; put.onCompleteBlock = onComplete; put.sent = NO; - + NSNumber* index = [self.putCounter getAndIncrement]; self.outstandingPuts[index] = put; - + if ([self canSendWrites]) { FFLog(@"I-RDB034024", @"Was connected, and added as index: %@", index); [self sendPut:index]; @@ -725,7 +725,7 @@ static void reachabilityCallback(SCNetworkReachabilityRef ref, SCNetworkReachabi nil]; [self.realtime sendRequest:msg sensitive:sensitive]; - + if (onMessage) { // Debug message without a callback; bump the rn, but don't hold onto the cb [self.requestCBHash setObject:[onMessage copy] forKey:rn]; diff --git a/Firebase/Database/Core/FRepo.h b/Firebase/Database/Core/FRepo.h index 69ec6bf..ab0b074 100644 --- a/Firebase/Database/Core/FRepo.h +++ b/Firebase/Database/Core/FRepo.h @@ -42,7 +42,7 @@ - (void) addEventRegistration:(id<FEventRegistration>)eventRegistration forQuery:(FQuerySpec *)query; - (void) removeEventRegistration:(id<FEventRegistration>)eventRegistration forQuery:(FQuerySpec *)query; - (void) keepQuery:(FQuerySpec *)query synced:(BOOL)synced; - + - (NSString*)name; - (NSTimeInterval)serverTime; diff --git a/Firebase/Database/Core/FRepo.m b/Firebase/Database/Core/FRepo.m index 17e7480..bb176c0 100644 --- a/Firebase/Database/Core/FRepo.m +++ b/Firebase/Database/Core/FRepo.m @@ -457,7 +457,7 @@ // For testing. self.dataUpdateCount++; - + FPath* path = [[FPath alloc] initWith:pathString]; data = self.interceptServerDataCallback ? self.interceptServerDataCallback(pathString, data) : data; NSArray *events = nil; @@ -543,7 +543,7 @@ - (void) didEnterBackground { if (!self.config.persistenceEnabled) return; - + // Targetted compilation is ONLY for testing. UIKit is weak-linked in actual release build. #if TARGET_OS_IOS // The idea is to wait until any outstanding sets get written to disk. Since the sets might still be in our diff --git a/Firebase/Database/Core/Utilities/FPath.m b/Firebase/Database/Core/Utilities/FPath.m index 485b903..5215596 100644 --- a/Firebase/Database/Core/Utilities/FPath.m +++ b/Firebase/Database/Core/Utilities/FPath.m @@ -175,11 +175,11 @@ for (NSInteger i = self.pieceNum; i < self.pieces.count; i++) { [newPieces addObject:[self.pieces objectAtIndex:i]]; } - + for (NSInteger i = childPathObj.pieceNum; i < childPathObj.pieces.count; i++) { [newPieces addObject:[childPathObj.pieces objectAtIndex:i]]; } - + return [[FPath alloc] initWithPieces:newPieces andPieceNum:0]; } diff --git a/Firebase/Database/Core/Utilities/FTree.m b/Firebase/Database/Core/Utilities/FTree.m index 8576ffb..8e7a334 100644 --- a/Firebase/Database/Core/Utilities/FTree.m +++ b/Firebase/Database/Core/Utilities/FTree.m @@ -107,11 +107,11 @@ if(incSelf && !childFirst) { action(self); } - + [self forEachChild:^(FTree* child) { [child forEachDescendant:action includeSelf:YES childrenFirst:childFirst]; }]; - + if(incSelf && childFirst) { action(self); } |