Skip to content

Commit

Permalink
Fix for generics usages introduced with #228.
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Sep 7, 2015
1 parent 27293d5 commit 16c94b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ios/Calendar.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ - (void) modifyEventWithOptions:(CDVInvokedUrlCommand*)command {


[self.commandDelegate runInBackground: ^{
NSArray<EKCalendar *>* calendars = nil;
NSArray *calendars = nil;

if (calendarName == (id)[NSNull null]) {
calendars = self.eventStore.calendars;
calendars = [self.eventStore calendarsForEntityType:EKEntityTypeEvent];
if (calendars.count == 0) {
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"No default calendar found. Is access to the Calendar blocked for this app?"];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
Expand Down Expand Up @@ -303,7 +303,7 @@ - (NSArray*) findEKEventsWithTitle: (NSString *)title
notes: (NSString *)notes
startDate: (NSDate *)startDate
endDate: (NSDate *)endDate
calendars: (NSArray<EKCalendar *>*) calendars {
calendars: (NSArray*)calendars {

NSMutableArray *predicateStrings = [NSMutableArray arrayWithCapacity:3];
if (title != (id)[NSNull null] && title.length > 0) {
Expand Down Expand Up @@ -735,7 +735,7 @@ - (void) findEventWithOptions:(CDVInvokedUrlCommand*)command {
NSTimeInterval _endInterval = [endTime doubleValue] / 1000; // strip millis
NSDate *myEndDate = [NSDate dateWithTimeIntervalSince1970:_endInterval];

NSArray<EKCalendar *>* calendars = nil;
NSArray* calendars = nil;

if (calendarName == (id)[NSNull null]) {
calendars = [self.eventStore calendarsForEntityType:EKEntityTypeEvent];
Expand Down

0 comments on commit 16c94b5

Please sign in to comment.