chore: 脚本操作时不使用空值合并运算符

This commit is contained in:
xream
2024-01-20 22:14:23 +08:00
parent 319525d4a7
commit c39930707b
2 changed files with 2 additions and 2 deletions

View File

@@ -324,7 +324,7 @@ function ScriptOperator(script, targetPlatform, $arguments, source) {
const operator = createDynamicFunction(
'operator',
`async function operator(input = []) {
if (input?.$files || input?.$content) {
if (input && (input.$files || input.$content)) {
let { $content, $files } = input
${script}
return { $content, $files }