mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 14:24:08 +00:00
Check cargoExtraArgs for undefined before using
This commit is contained in:
parent
7c4bb97145
commit
d019cdbbb2
@ -129,7 +129,9 @@ export async function createTask(runnable: ra.Runnable, config: Config): Promise
|
||||
}
|
||||
|
||||
const args = [...runnable.args.cargoArgs]; // should be a copy!
|
||||
args.push(...runnable.args.cargoExtraArgs); // Append user-specified cargo options.
|
||||
if (runnable.args.cargoExtraArgs) {
|
||||
args.push(...runnable.args.cargoExtraArgs); // Append user-specified cargo options.
|
||||
}
|
||||
if (runnable.args.executableArgs.length > 0) {
|
||||
args.push('--', ...runnable.args.executableArgs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user