Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
getsentry-bot committed Jul 5, 2022
1 parent bc9d991 commit d4e51ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Sources/Sentry/SentryFileManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,9 @@ - (void)deleteTimezoneOffset
// We don't want to log an error if the file doesn't exist.
if (nil != error && error.code != NSFileNoSuchFileError) {
[SentryLog
logWithMessage:[NSString stringWithFormat:@"Failed to delete timezone offset %@", error]
andLevel:kSentryLevelError];
logWithMessage:[NSString
stringWithFormat:@"Failed to delete timezone offset %@", error]
andLevel:kSentryLevelError];
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ class SentrySystemEventBreadcrumbsTest: XCTestCase {
let scope = Scope()
sut = fixture.getSut(scope: scope, currentDevice: nil)

fixture.currentDateProvider.timezoneOffsetValue = 7200
fixture.currentDateProvider.timezoneOffsetValue = 7_200

NotificationCenter.default.post(Notification(name: NSNotification.Name.NSSystemTimeZoneDidChange))
assertBreadcrumbAction(scope: scope, action: "TIMEZONE_CHANGE") { data in
XCTAssertEqual(data["previous_seconds_from_gmt"] as? Int, 0)
XCTAssertEqual(data["current_seconds_from_gmt"] as? Int, 7200)
XCTAssertEqual(data["current_seconds_from_gmt"] as? Int, 7_200)
}
}

Expand Down

0 comments on commit d4e51ad

Please sign in to comment.