style: minor nit, use destructuring assignment

This commit is contained in:
Alex Eagle 2022-05-02 20:34:37 -07:00 committed by Derek Cormier
parent 400ff189b3
commit 8f877b6a84
1 changed files with 1 additions and 4 deletions

View File

@ -32,10 +32,7 @@ async function main(argv) {
process.exit(1);
}
const projectPath = argv[0];
const bcrPath = argv[1];
const ownerSlashRepo = argv[2];
const tag = argv[3];
const [projectPath, bcrPath, ownerSlashRepo, tag] = argv;
const version = getVersionFromTag(tag);
const moduleName = getModuleName(resolve(projectPath, "MODULE.bazel"));