Skip to content

Commit

Permalink
Update runner.js
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Feb 18, 2024
1 parent c619b55 commit a3fe28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default async function runConfig(config, domain, writer, sandbox = false)
(code === 0 ? resolve : reject)(code);
});
});
const optIdx = opts.findIndex(x => !!opts[x].domain)
const optIdx = opts.findIndex(x => !!(x && x.domain))
if (optIdx >= 0) {
const lockPath = 'virtualmin-' + opts[optIdx].domain;
return executeLock(lockPath, corePromise)
Expand Down

0 comments on commit a3fe28d

Please sign in to comment.