Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function shouldBeLive(opts?: PreparedOptions): boolean {
return !opts || !opts.skipFirst &&
(opts.from === undefined || safeUnwrap(opts.from) === true) &&
(opts.until === undefined || safeUnwrap(opts.until) === false) &&
(opts.when === undefined || safeUnwrap(opts.when) === true);
}
function shouldBeLive(opts?: PreparedOptions): boolean {
return !opts || !opts.skipFirst &&
(opts.from === undefined || safeUnwrap(opts.from) === true) &&
(opts.until === undefined || safeUnwrap(opts.until) === false) &&
(opts.when === undefined || safeUnwrap(opts.when) === true);
}
function shouldBeLive(opts?: PreparedOptions): boolean {
return !opts || !opts.skipFirst &&
(opts.from === undefined || safeUnwrap(opts.from) === true) &&
(opts.until === undefined || safeUnwrap(opts.until) === false) &&
(opts.when === undefined || safeUnwrap(opts.when) === true);
}