Skip to content

Commit 7b04d8a

Browse files
fix(lint) linting errors
1 parent 8cd81dd commit 7b04d8a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

secret-manager/createSecret.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
'use strict';
1616

17-
async function main(parent = 'projects/my-project', secretId = 'my-secret', ttl = undefined) {
17+
async function main(
18+
parent = 'projects/my-project',
19+
secretId = 'my-secret',
20+
ttl = undefined
21+
) {
1822
// [START secretmanager_create_secret]
1923
/**
2024
* TODO(developer): Uncomment these variables before running the sample.
@@ -24,15 +28,15 @@ async function main(parent = 'projects/my-project', secretId = 'my-secret', ttl
2428
// const ttl = '900s' // Optional: Specify TTL in seconds (e.g., '900s' for 15 minutes).
2529

2630
// Imports the Secret Manager library
27-
const { SecretManagerServiceClient } = require('@google-cloud/secret-manager');
31+
const {SecretManagerServiceClient} = require('@google-cloud/secret-manager');
2832

2933
// Instantiates a client
3034
const client = new SecretManagerServiceClient();
3135

3236
async function createSecret() {
3337
const secretConfig = {
3438
replication: {
35-
automatic: {}
39+
automatic: {},
3640
},
3741
};
3842

@@ -45,7 +49,7 @@ async function main(parent = 'projects/my-project', secretId = 'my-secret', ttl
4549
parent: parent,
4650
secretId: secretId,
4751
secret: secretConfig,
48-
})
52+
});
4953

5054
console.log(`Created secret ${secret.name}`);
5155
}

0 commit comments

Comments
 (0)