Commit 74e89c08 by Christian Padilla Committed by GitHub

Fix possible-nil return type of EventPermissionStrategy#getEntityType (#1278)

* Update pubspec.yaml

* Update CHANGELOG.md

* Fix return type of EventPermissionStrategy#getEntityType

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.

---------

Co-authored-by: Maurits van Beusekom <maurits@vnbskm.nl>
parent 0ce5b3f7
## 9.4.4
* Fixes typo in comment for full calendar access.
* Fixes potentially-nil return type of EventPermissionStrategy#getEntityType.
* * Fixes typo in comment for full calendar access.
## 9.4.3
......
......@@ -133,13 +133,11 @@
}
+ (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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment