Skip to content

Commit

Permalink
Run clang-format on the main.m and SNTMetricService.m for linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarkowsky committed Oct 21, 2021
1 parent efd67bc commit 50ae58a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/santametricservice/SNTMetricService.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ - (NSString *)messageFromError:(NSError *)error {
*/
- (void)exportForMonitoring:(NSDictionary *)metrics {
SNTConfigurator *config = [SNTConfigurator configurator];

if (![config exportMetrics]) {
LOGD(@"received metrics message while not configured to export metrics.");
return;
Expand Down
8 changes: 4 additions & 4 deletions Source/santametricservice/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@

#import <MOLXPCConnection/MOLXPCConnection.h>

#import "Source/common/SNTLogging.h"
#import "Source/common/SNTDropRootPrivs.h"
#import "Source/common/SNTLogging.h"
#import "Source/common/SNTXPCMetricServiceInterface.h"
#import "Source/santametricservice/SNTMetricService.h"

int main(int argc, const char *argv[]) {
if (!DropRootPrivileges()) {
LOGE(@"unable to drop root privileges, exiting.");
exit(1);
LOGE(@"unable to drop root privileges, exiting.");
exit(1);
};

@autoreleasepool {
NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
LOGI(@"Started, version %@", infoDict[@"CFBundleVersion"]);
Expand Down

0 comments on commit 50ae58a

Please sign in to comment.