Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static parse(rawInput, calendar) {
let rawProps
if (typeof rawInput === 'object') { // long form. might fail in applyManualStandardProps
rawProps = rawInput
} else if (typeof rawInput === 'string') { // short form
rawProps = { url: rawInput } // url will be parsed with parseGoogleCalendarId
}
if (rawProps) {
return EventSource.parse.call(this, rawProps, calendar)
}
return false
}