Skip to content

Commit

Permalink
Reformatted text to align with style guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarkowsky committed Sep 22, 2021
1 parent 5d0800c commit 1c81d62
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Source/santametricservice/Formats/SNTMetricRawJSONFormat.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,11 @@ - (NSDictionary *)normalize:(NSDictionary *)metrics {

if (![NSJSONSerialization isValidJSONObject:normalizedMetrics]) {
if (err != nil) {
*err = [[NSError alloc]
initWithDomain:@"SNTMetricRawJSONFileWriter"
code:EINVAL
userInfo:@{
NSLocalizedDescriptionKey : @"unable to convert metrics to JSON: invalid metrics"
}];
*err = [[NSError alloc] initWithDomain:@"SNTMetricRawJSONFileWriter"
code:EINVAL
userInfo:@{
NSLocalizedDescriptionKey : @"unable to convert metrics to JSON: invalid metrics"
}];
}
return nil;
}
Expand Down

0 comments on commit 1c81d62

Please sign in to comment.