JM-Lemmi / ical-relay

Relay ical urls and edit them on the fly with different modules.
GNU Affero General Public License v3.0
9 stars 2 forks source link

Allow empty strings in `edit` action #200

Closed frereit closed 9 months ago

frereit commented 1 year ago

Currently, if any property is explicitly empty (i.e new-location: "") it is treated the same as non-existent keys:

https://github.com/JM-Lemmi/ical-relay/blob/fe4da1fcef05e347bd37358a0fc4490fd5cfc2d3/pkg/modules/actions.go#L95

JM-Lemmi commented 1 year ago

Thats a Problem in GO. I don't think you can differentiate between an empty and non-existent element in a dict.