Fix undefined error.
This commit is contained in:
parent
c247b194c2
commit
c10cdd3aaf
|
@ -231,7 +231,7 @@ export function processStringSync(
|
||||||
return process(string)
|
return process(string)
|
||||||
}
|
}
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
const { noThrow = true } = opts
|
const { noThrow = true } = opts || {}
|
||||||
if (noThrow) {
|
if (noThrow) {
|
||||||
return input
|
return input
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue