Skip to content

Commit

Permalink
Lint all iOS sources
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Mar 6, 2018
1 parent 8e8034e commit 11ae1f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions APSHTTPClient/APSHTTPRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ - (void)responseFinished
[self invokeCallbackWithState:APSHTTPCallbackStateDataStream];

[self invokeCallbackWithState:APSHTTPCallbackStateLoad];

[[self postForm] destroyTemporaryData];
}

- (void)URLSession:(nonnull NSURLSession *)session task:(nonnull NSURLSessionTask *)task didCompleteWithError:(nullable NSError *)error
Expand Down Expand Up @@ -445,6 +447,7 @@ - (void)URLSession:(nonnull NSURLSession *)session didBecomeInvalidWithError:(nu
self.response.connected = NO;
self.response.error = error;
[self invokeCallbackWithState:APSHTTPCallbackStateError];
[[self postForm] destroyTemporaryData];
}

- (void)invokeCallbackWithState:(APSHTTPCallbackState)state
Expand Down

0 comments on commit 11ae1f5

Please sign in to comment.