Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Fixing reviewer's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
donghez-google committed Jan 28, 2021
1 parent 0923632 commit 7172612
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion samples/analyzeIamPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ async function main() {
analyzeIamPolicy();
}

main(...process.argv.slice(2)).catch(err => {
process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
7 changes: 3 additions & 4 deletions samples/analyzeIamPolicyLongrunningBigquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ async function main(datasetId, tablePrefix) {
console.log(util.inspect(result, {depth: null}));
}
// [END asset_quickstart_analyze_iam_policy_longrunning_bigquery]
analyzeIamPolicyLongrunningBigquery().catch(err => {
console.error(err.message);
});
analyzeIamPolicyLongrunningBigquery();
}

main(...process.argv.slice(2)).catch(err => {
process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
7 changes: 3 additions & 4 deletions samples/analyzeIamPolicyLongrunningGcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ async function main(gcsUri) {
console.log(util.inspect(result, {depth: null}));
}
// [END asset_quickstart_analyze_iam_policy_longrunning_gcs]
analyzeIamPolicyLongrunningGcs().catch(err => {
console.error(err.message);
});
analyzeIamPolicyLongrunningGcs();
}

main(...process.argv.slice(2)).catch(err => {
process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"test": "mocha --timeout 180000"
},
"dependencies": {
"@google-cloud/bigquery": "^5.5.0",
"@google-cloud/asset": "^3.11.0",
"@google-cloud/bigquery": "^5.5.0",
"@google-cloud/compute": "^2.0.0",
"@google-cloud/storage": "^5.0.0",
"uuid": "^8.0.0",
Expand Down

0 comments on commit 7172612

Please sign in to comment.