Skip to content

Commit

Permalink
Fix return type of EventPermissionStrategy#getEntityType
Browse files Browse the repository at this point in the history
This method is causing a compilation warning: -Wint-conversion.

Even ignoring the warning, the nil value would not be tolerated and is never actually returned.
  • Loading branch information
ChristianEdwardPadilla authored Feb 7, 2024
1 parent b3af8a7 commit 8208e1e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,11 @@ + (PermissionStatus)permissionStatus:(PermissionGroup)permission {
}

+ (EKEntityType)getEntityType:(PermissionGroup)permission {
if (permission == PermissionGroupCalendar || permission == PermissionGroupCalendarFullAccess || permission == PermissionGroupCalendarWriteOnly) {
return EKEntityTypeEvent;
} else if (permission == PermissionGroupReminders) {
if (permission == PermissionGroupReminders) {
return EKEntityTypeReminder;
}

return nil;
return EKEntityTypeEvent;
}

@end
Expand Down

0 comments on commit 8208e1e

Please sign in to comment.