Fixing test failure.

This commit is contained in:
mike12345567 2025-01-20 15:23:00 +00:00
parent bd5e55480e
commit 3b03515253
1 changed files with 4 additions and 2 deletions

View File

@ -24,8 +24,10 @@ function process(
} }
for (let match of matches) { for (let match of matches) {
const res = processor.process(output, match, opts || {}) const res = processor.process(output, match, opts || {})
if (typeof res === "object" && "logs" in res && res.logs) { if (typeof res === "object") {
logs = logs.concat(res.logs) if ("logs" in res && res.logs) {
logs = logs.concat(res.logs)
}
output = res.result output = res.result
} else { } else {
output = res as string output = res as string