Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaykanthm committed Oct 1, 2024
1 parent 0c61757 commit 350aed2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion security-center/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"license": "Apache-2.0",
"dependencies": {
"@google-cloud/pubsub": "^4.0.0",
"@google-cloud/security-center": "^8.7.0"
"@google-cloud/security-center": "^8.7.0",
"@google-cloud/bigquery": "^7.0.0"
},
"devDependencies": {
"c8": "^10.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const {assert} = require('chai');
const {execSync} = require('child_process');
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
const {describe, it, before} = require('mocha');
const { BigQuery } = require('@google-cloud/bigquery');
const {BigQuery} = require('@google-cloud/bigquery');

const organizationId = process.env.GCLOUD_ORGANIZATION;
const projectId = process.env.GOOGLE_SAMPLES_PROJECT;
Expand All @@ -37,7 +37,9 @@ async function createDataset() {
const datasetExists = datasets.some(dataset => dataset.id === datasetId);

if (datasetExists) {
console.log(`Dataset ${datasetId} already exists, using the existing dataset.`);
console.log(
`Dataset ${datasetId} already exists, using the existing dataset.`
);
return bigquery.dataset(datasetId); // Return the existing dataset
}

Expand Down

0 comments on commit 350aed2

Please sign in to comment.