Skip to content

Commit a2f6598

Browse files
committed
Incorporated feedback from review comments
1 parent 7dceecc commit a2f6598

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

storagebatchoperations/getJob.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ function main(projectId, jobId) {
5555
// Run request
5656
const [response] = await client.getJob(request);
5757
console.log(`Batch job details for '${jobId}':`);
58-
console.log(` Name: ${response.name}`);
59-
console.log(` State: ${response.state}`);
58+
console.log(`Name: ${response.name}`);
59+
console.log(`State: ${response.state}`);
6060
console.log(
61-
` Create Time: ${new Date(response.createTime.seconds * 1000).toISOString()}`
61+
`Create Time: ${new Date(response.createTime.seconds * 1000).toISOString()}`
6262
);
6363
} catch (error) {
6464
console.error(

storagebatchoperations/system-test/storagebatchoperations.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2222
const projectId = process.env.GCLOUD_PROJECT;
2323
const bucketPrefix = 'sbo-samples';
2424
const bucketName = `${bucketPrefix}-${uuid.v4()}`;
25-
const storage = new Storage(projectId);
25+
const storage = new Storage({projectId: projectId});
2626
const bucket = new Bucket(storage, bucketName);
2727
const jobId = uuid.v4();
2828
const jobName = `projects/${projectId}/locations/global/jobs/${jobId}`;

0 commit comments

Comments
 (0)