diff --git a/.clang-format b/.clang-format deleted file mode 100644 index 7d6cf97e1..000000000 --- a/.clang-format +++ /dev/null @@ -1,3 +0,0 @@ -Language: JavaScript -BasedOnStyle: Google -ColumnLimit: 80 \ No newline at end of file diff --git a/samples/bucketLock.js b/samples/bucketLock.js index 8666996df..77c8d8ee3 100644 --- a/samples/bucketLock.js +++ b/samples/bucketLock.js @@ -34,9 +34,7 @@ async function setRetentionPolicy(bucketName, retentionPeriod) { .bucket(bucketName) .setRetentionPeriod(retentionPeriod); console.log( - `Bucket ${bucketName} retention period set for ${ - metadata.retentionPolicy.retentionPeriod - } seconds.` + `Bucket ${bucketName} retention period set for ${metadata.retentionPolicy.retentionPeriod} seconds.` ); // [END storage_set_retention_policy] } @@ -104,9 +102,7 @@ async function lockRetentionPolicy(bucketName) { .lock(unlockedMetadata.metageneration); console.log(`Retention policy for ${bucketName} is now locked.`); console.log( - `Retention policy effective as of ${ - lockedMetadata.retentionPolicy.effectiveTime - }` + `Retention policy effective as of ${lockedMetadata.retentionPolicy.effectiveTime}` ); return lockedMetadata; diff --git a/src/file.ts b/src/file.ts index 4e3f2dbac..7405d4f47 100644 --- a/src/file.ts +++ b/src/file.ts @@ -2476,9 +2476,7 @@ class File extends ServiceObject { if (config.extensionHeaders) { for (const headerName of Object.keys(config.extensionHeaders)) { - extensionHeadersString += `${headerName}:${ - config.extensionHeaders[headerName] - }\n`; + extensionHeadersString += `${headerName}:${config.extensionHeaders[headerName]}\n`; } } diff --git a/test/file.ts b/test/file.ts index 6ee1480ec..35376a0fc 100644 --- a/test/file.ts +++ b/test/file.ts @@ -540,9 +540,7 @@ describe('File', () => { it('should allow a string', done => { const newFileName = '/new-file-name.png'; const newFile = new File(BUCKET, newFileName); - const expectedPath = `/rewriteTo/b/${file.bucket.name}/o/${ - newFile.name - }`; + const expectedPath = `/rewriteTo/b/${file.bucket.name}/o/${newFile.name}`; assertPathEquals(file, expectedPath, done); file.copy(newFileName); });