Skip to content

Commit ed671ee

Browse files
authored
Update Core style (#641)
1 parent 90dedd3 commit ed671ee

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

Firebase/Core/FIRApp.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ + (NSError *)errorForSubspecConfigurationFailureWithDomain:(NSString *)domain
381381
[NSString stringWithFormat:@"Configuration failed for service %@.", service];
382382
NSDictionary *errorDict =
383383
@{NSLocalizedDescriptionKey : description, NSLocalizedFailureReasonErrorKey : reason};
384-
return [NSError errorWithDomain:domain
385-
code:code
386-
userInfo:errorDict];
384+
return [NSError errorWithDomain:domain code:code userInfo:errorDict];
387385
}
388386

389387
+ (NSError *)errorForInvalidAppID {

Firebase/Core/FIRLogger.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ void FIRLogBasic(FIRLoggerLevel level,
230230
NSCAssert(numberOfMatches == 1, @"Incorrect message code format.");
231231
#endif
232232
NSString *logMsg = [[NSString alloc] initWithFormat:message arguments:args_ptr];
233-
logMsg = [NSString stringWithFormat:@"%s - %@[%@] %@", FirebaseVersionString, service, messageCode, logMsg];
233+
logMsg = [NSString
234+
stringWithFormat:@"%s - %@[%@] %@", FirebaseVersionString, service, messageCode, logMsg];
234235
dispatch_async(sFIRClientQueue, ^{
235236
asl_log(sFIRLoggerClient, NULL, level, "%s", logMsg.UTF8String);
236237
});

Firebase/Core/FIRVersion.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
18-
1917
#ifndef Firebase_VERSION
2018
#error "Firebase_VERSION is not defined: add -DFirebase_VERSION=... to the build invocation"
2119
#endif
@@ -24,7 +22,6 @@
2422
#error "FIRCore_VERSION is not defined: add -DFIRCore_VERSION=... to the build invocation"
2523
#endif
2624

27-
2825
// The following two macros supply the incantation so that the C
2926
// preprocessor does not try to parse the version as a floating
3027
// point number. See
@@ -33,7 +30,7 @@
3330
#define STR_EXPAND(x) #x
3431

3532
const unsigned char *const FirebaseVersionString =
36-
(const unsigned char *const)STR(Firebase_VERSION);
33+
(const unsigned char *const)STR(Firebase_VERSION);
3734

3835
const unsigned char *const FirebaseCoreVersionString =
39-
(const unsigned char *const)STR(FIRCore_VERSION);
36+
(const unsigned char *const)STR(FIRCore_VERSION);

Firebase/Storage/FIRStorageErrors.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ + (NSError *)errorWithCode:(FIRStorageErrorCode)code
104104
break;
105105

106106
case FIRStorageErrorCodeUnknown:
107-
/* Fall through to default case for unknown errors */
107+
/* Fall through to default case for unknown errors */
108108

109109
default:
110110
errorMessage = @"An unknown error occurred, please check the server response.";

Firebase/Storage/FIRStorageObservableTask.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ - (FIRStorageHandle)observeStatus:(FIRStorageTaskStatus)status
102102
break;
103103

104104
case FIRStorageTaskStatusUnknown:
105-
// Fall through to exception case if an unknown status is passed
105+
// Fall through to exception case if an unknown status is passed
106106

107107
default:
108108
[NSException raise:NSInternalInconsistencyException

0 commit comments

Comments
 (0)