Fix undefined error.

This commit is contained in:
Sam Rose 2024-10-04 11:56:55 +01:00
parent c247b194c2
commit c10cdd3aaf
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ export function processStringSync(
return process(string)
}
} catch (err: any) {
const { noThrow = true } = opts
const { noThrow = true } = opts || {}
if (noThrow) {
return input
}