Skip to content

Commit d8b2dfb

Browse files
Clang format
1 parent c7b2ccd commit d8b2dfb

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

Firestore/Example/Tests/Integration/FSTStreamTests.m

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ - (void)testWriteStreamStopAfterHandshake {
250250
[writeStream stop];
251251
}];
252252

253-
[self verifyDelegate:@[ @"writeStreamDidOpen", @"writeStreamDidCompleteHandshake", @"writeStreamDidReceiveResponseWithVersion" ]];
253+
[self verifyDelegate:@[
254+
@"writeStreamDidOpen", @"writeStreamDidCompleteHandshake",
255+
@"writeStreamDidReceiveResponseWithVersion"
256+
]];
254257
}
255258

256259
- (void)testStreamClosesWhenIdle {
@@ -281,7 +284,9 @@ - (void)testStreamClosesWhenIdle {
281284
XCTAssertFalse([writeStream isOpen]);
282285
});
283286

284-
[self verifyDelegate:@[ @"writeStreamDidOpen", @"writeStreamDidCompleteHandshake", @"writeStreamWasInterrupted" ]];
287+
[self verifyDelegate:@[
288+
@"writeStreamDidOpen", @"writeStreamDidCompleteHandshake", @"writeStreamWasInterrupted"
289+
]];
285290
}
286291

287292
- (void)testStreamCancelsIdleOnWrite {
@@ -322,7 +327,10 @@ - (void)testStreamCancelsIdleOnWrite {
322327
[writeStream stop];
323328
}];
324329

325-
[self verifyDelegate:@[ @"writeStreamDidOpen", @"writeStreamDidCompleteHandshake", @"writeStreamDidReceiveResponseWithVersion" ]];
330+
[self verifyDelegate:@[
331+
@"writeStreamDidOpen", @"writeStreamDidCompleteHandshake",
332+
@"writeStreamDidReceiveResponseWithVersion"
333+
]];
326334
}
327335

328336
@end

Firestore/Source/Remote/FSTDatastore.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ NS_ASSUME_NONNULL_BEGIN
229229
snapshotVersion:(FSTSnapshotVersion *)snapshotVersion;
230230

231231
/**
232-
* Called by the FSTWatchStream when the underlying streaming RPC is interrupted for whatever reason,
233-
* usually because of an error, but possibly due to an idle timeout. The error passed to this
234-
* method may be nil, in which case the stream was closed without attributable fault.
232+
* Called by the FSTWatchStream when the underlying streaming RPC is interrupted for whatever
233+
* reason, usually because of an error, but possibly due to an idle timeout. The error passed to
234+
* this method may be nil, in which case the stream was closed without attributable fault.
235235
*
236236
* NOTE: This will not be called after `stop` is called on the stream. See "Starting and Stopping"
237237
* on FSTStream for details.
@@ -297,9 +297,9 @@ NS_ASSUME_NONNULL_BEGIN
297297
mutationResults:(NSArray<FSTMutationResult *> *)results;
298298

299299
/**
300-
* Called when the FSTWriteStream's underlying RPC is interrupted for whatever reason, usually because
301-
* of an error, but possibly due to an idle timeout. The error passed to this method may be nil, in
302-
* which case the stream was closed without attributable fault.
300+
* Called when the FSTWriteStream's underlying RPC is interrupted for whatever reason, usually
301+
* because of an error, but possibly due to an idle timeout. The error passed to this method may be
302+
* nil, in which case the stream was closed without attributable fault.
303303
*
304304
* NOTE: This will not be called after `stop` is called on the stream. See "Starting and Stopping"
305305
* on FSTStream for details.

Firestore/Source/Remote/FSTDatastore.m

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ + (void)prepareHeadersForRPC:(GRPCCall *)rpc
442442

443443
@interface GRXFilter : NSObject <GRXWriteable>
444444

445-
- (instancetype) initWithStream:(FSTStream *) stream NS_DESIGNATED_INITIALIZER;
446-
- (instancetype) init NS_UNAVAILABLE;
445+
- (instancetype)initWithStream:(FSTStream *)stream NS_DESIGNATED_INITIALIZER;
446+
- (instancetype)init NS_UNAVAILABLE;
447447

448448
@property(atomic, readwrite) BOOL passthrough;
449449
@property(nonatomic, weak, readonly) FSTStream *stream;
@@ -478,7 +478,7 @@ - (void)writesFinishedWithError:(NSError *)errorOrNil {
478478

479479
@interface FSTStream ()
480480

481-
@property (nonatomic, strong, readwrite) GRXFilter* grxFilter;
481+
@property(nonatomic, strong, readwrite) GRXFilter *grxFilter;
482482

483483
@end
484484

@@ -687,7 +687,7 @@ - (void)stop {
687687

688688
- (void)inhibitBackoff {
689689
FSTAssert(![self isStarted], @"Can only inhibit backoff after an error (was %ld)",
690-
(long)self.state);
690+
(long)self.state);
691691
[self.workerDispatchQueue verifyIsCurrentQueue];
692692

693693
// Clear the error condition.
@@ -777,12 +777,13 @@ - (void)notifyStreamOpen {
777777
}
778778

779779
/**
780-
* Called by the stream after the stream has been unexpectedly interrupted, either due to an error or due to idleness.
780+
* Called by the stream after the stream has been unexpectedly interrupted, either due to an error
781+
* or due to idleness.
781782
*
782-
* Subclasses should relay to their stream-specific delegate. Calling [super notifyStreamInterrupted] is
783-
* not required.
783+
* Subclasses should relay to their stream-specific delegate. Calling [super
784+
* notifyStreamInterrupted] is not required.
784785
*/
785-
- (void)notifyStreamInterrupted:(NSError* _Nullable)error {
786+
- (void)notifyStreamInterrupted:(NSError *_Nullable)error {
786787
}
787788

788789
/**

0 commit comments

Comments
 (0)