Skip to content

Commit

Permalink
Clang Format
Browse files Browse the repository at this point in the history
  • Loading branch information
runner authored and runner committed Apr 10, 2023
1 parent df198a3 commit 2d3c41e
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ typedef NS_ENUM(NSInteger, UILocalNotificationDateInterpretation) {
}

static FlutterError *getInvalidDateFlutterError(void) {
return [FlutterError errorWithCode:@"invalid_date" message:@"Apple's APIs cannot parse this date. Please check to see if daylight savings is taking on this time and adjust the date you want to specify accordingly." details:nil];
return [FlutterError
errorWithCode:@"invalid_date"
message:@"Apple's APIs cannot parse this date. Please check to see "
@"if daylight savings is taking on this time and adjust "
@"the date you want to specify accordingly."
details:nil];
}

+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
Expand Down Expand Up @@ -613,8 +618,8 @@ - (void)zonedSchedule:(NSDictionary *_Nonnull)arguments
UNCalendarNotificationTrigger *trigger =
[self buildUserNotificationCalendarTrigger:arguments];
if (!trigger) {
result(getInvalidDateFlutterError());
return;
result(getInvalidDateFlutterError());
return;
}

[self addNotificationRequest:[self getIdentifier:arguments]
Expand All @@ -640,7 +645,7 @@ - (void)zonedSchedule:(NSDictionary *_Nonnull)arguments
NSDate *date = [dateFormatter dateFromString:scheduledDateTime];
if (!date) {
result(getInvalidDateFlutterError());
return;
return;
}
notification.fireDate = date;
if (uiLocalNotificationDateInterpretation != nil) {
Expand Down

0 comments on commit 2d3c41e

Please sign in to comment.