mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 07:30:41 +09:00
Remove unneeded comments
This commit is contained in:
2 files changed
-7
No files matched your search
@@ -118,10 +118,6 @@ async function safeOutputFile(file, data, options={}) {
|
||||
}
|
||||
|
||||
async function execFile(cmd, args) {
|
||||
// Arguments are escaped here and joined into the command rather than
|
||||
// passed to execFile. With shell: true it would only concatenate them by
|
||||
// space without escaping anything, which is what it is deprecated for
|
||||
// (DEP0190) as it gives the impression the arguments are made safe.
|
||||
const command = [cmd, ...args.map(escapeArg)].join(" ");
|
||||
logger.verbose(`executing ${command}`);
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in new issue
Block a user