Skip to content

Commit

Permalink
build: remove unused clang format (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Jun 10, 2019
1 parent 61eeb64 commit f24439d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .clang-format

This file was deleted.

8 changes: 2 additions & 6 deletions samples/bucketLock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2476,9 +2476,7 @@ class File extends ServiceObject<File> {

if (config.extensionHeaders) {
for (const headerName of Object.keys(config.extensionHeaders)) {
extensionHeadersString += `${headerName}:${
config.extensionHeaders[headerName]
}\n`;
extensionHeadersString += `${headerName}:${config.extensionHeaders[headerName]}\n`;
}
}

Expand Down
4 changes: 1 addition & 3 deletions test/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit f24439d

Please sign in to comment.