Skip to content

Commit

Permalink
Fixed file formatting with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandra Fedotova committed Oct 17, 2022
1 parent bd290e8 commit d3d3927
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ios/Classes/SwiftDeviceCalendarPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,13 @@ public class SwiftDeviceCalendarPlugin: NSObject, FlutterPlugin, EKEventViewDele
private func convertEkEventStatus(ekEventStatus: EKEventStatus?) -> EventStatus? {
switch ekEventStatus {
case .confirmed:
return EventStatus.CONFIRMED
return EventStatus.CONFIRMED
case .tentative:
return EventStatus.TENTATIVE
case .canceled:
return EventStatus.CANCELED
case .none?:
return EventStatus.NONE
case .canceled:
return EventStatus.CANCELED
case .none?:
return EventStatus.NONE
default:
return nil
}
Expand Down Expand Up @@ -817,7 +817,7 @@ public class SwiftDeviceCalendarPlugin: NSObject, FlutterPlugin, EKEventViewDele
ekEvent!.startDate = startDate
ekEvent!.endDate = endDate

if (!isAllDay) {
if (!isAllDay) {
let timeZone = TimeZone(identifier: startTimeZoneString ?? TimeZone.current.identifier) ?? .current
ekEvent!.timeZone = timeZone
}
Expand Down

0 comments on commit d3d3927

Please sign in to comment.