diff options
author | Sebastian Schmidt <mrschmidt@google.com> | 2017-11-09 14:43:53 -0800 |
---|---|---|
committer | Sebastian Schmidt <mrschmidt@google.com> | 2017-11-09 17:51:21 -0800 |
commit | 110f0edf9d25887984fcdf12becb11a4661ad637 (patch) | |
tree | b65ffc470b32e1142ad42e016bfc18bae49722bf /Firebase/Storage/FIRStorageDownloadTask.m | |
parent | 86f429b2f0061a9f16c42f83841d36813892232b (diff) |
Clang-formatting Storage
Diffstat (limited to 'Firebase/Storage/FIRStorageDownloadTask.m')
-rw-r--r-- | Firebase/Storage/FIRStorageDownloadTask.m | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Firebase/Storage/FIRStorageDownloadTask.m b/Firebase/Storage/FIRStorageDownloadTask.m index 783ac68..c410f05 100644 --- a/Firebase/Storage/FIRStorageDownloadTask.m +++ b/Firebase/Storage/FIRStorageDownloadTask.m @@ -36,7 +36,7 @@ return self; } -- (void) dealloc { +- (void)dealloc { [_fetcher stopFetching]; } @@ -45,7 +45,8 @@ } - (void)enqueueWithData:(nullable NSData *)resumeData { - NSAssert([NSThread isMainThread], @"Download attempting to execute on non main queue! Please " + NSAssert([NSThread isMainThread], + @"Download attempting to execute on non main queue! Please " @"only execute this method on the main queue."); self.state = FIRStorageTaskStateQueueing; NSMutableURLRequest *request = [self.baseRequest mutableCopy]; @@ -146,7 +147,8 @@ } - (void)cancelWithError:(NSError *)error { - NSAssert([NSThread isMainThread], @"Cancel attempting to execute on non main queue! Please only " + NSAssert([NSThread isMainThread], + @"Cancel attempting to execute on non main queue! Please only " @"execute this method on the main queue."); self.state = FIRStorageTaskStateCancelled; [self.fetcher stopFetching]; @@ -155,7 +157,8 @@ } - (void)pause { - NSAssert([NSThread isMainThread], @"Pause attempting to execute on non main queue! Please only " + NSAssert([NSThread isMainThread], + @"Pause attempting to execute on non main queue! Please only " @"execute this method on the main queue."); self.state = FIRStorageTaskStatePausing; [self.fetcher stopFetching]; @@ -167,7 +170,8 @@ } - (void)resume { - NSAssert([NSThread isMainThread], @"Resume attempting to execute on non main queue! Please only " + NSAssert([NSThread isMainThread], + @"Resume attempting to execute on non main queue! Please only " @"execute this method on the main queue."); self.state = FIRStorageTaskStateResuming; FIRStorageTaskSnapshot *snapshot = self.snapshot; |