Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwarajanand committed Apr 17, 2024
1 parent 913bfa2 commit 2facba2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/nodejs-common/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ export class Service {
};

if (reqOpts[GCCL_GCS_CMD_KEY]) {
reqOpts.headers['x-goog-api-client'] +=
` gccl-gcs-cmd/${reqOpts[GCCL_GCS_CMD_KEY]}`;
reqOpts.headers[

Check failure on line 274 in src/nodejs-common/service.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `⏎········'x-goog-api-client'` with `'x-goog-api-client']·+=`
'x-goog-api-client'
] += ` gccl-gcs-cmd/${reqOpts[GCCL_GCS_CMD_KEY]}`;

Check failure on line 276 in src/nodejs-common/service.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `]·+=` with `·`
}

if (reqOpts.shouldReturnStream) {
Expand Down
5 changes: 3 additions & 2 deletions src/resumable-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,9 @@ export class Upload extends Writable {
// `Content-Length` for multiple chunk uploads is the size of the chunk,
// not the overall object
headers['Content-Length'] = bytesToUpload;
headers['Content-Range'] =
`bytes ${this.offset}-${endingByte}/${totalObjectSize}`;
headers[

Check failure on line 936 in src/resumable-upload.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `⏎········'Content-Range'` with `'Content-Range']·=`
'Content-Range'
] = `bytes ${this.offset}-${endingByte}/${totalObjectSize}`;

Check failure on line 938 in src/resumable-upload.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `]·=` with `·`
} else {
headers['Content-Range'] = `bytes ${this.offset}-*/${this.contentLength}`;
}
Expand Down
5 changes: 3 additions & 2 deletions src/transfer-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ class XMLMultiPartUploadHelper implements MultiPartUploadHelper {

// Prepend command feature to value, if not already there
if (!value.includes(GCCL_GCS_CMD_FEATURE.UPLOAD_SHARDED)) {
headers[key] =
`${value} gccl-gcs-cmd/${GCCL_GCS_CMD_FEATURE.UPLOAD_SHARDED}`;
headers[

Check failure on line 226 in src/transfer-manager.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `⏎············key` with `key]·=`
key
] = `${value} gccl-gcs-cmd/${GCCL_GCS_CMD_FEATURE.UPLOAD_SHARDED}`;

Check failure on line 228 in src/transfer-manager.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `]·=` with `·`
}
} else if (key.toLocaleLowerCase().trim() === 'user-agent') {
userAgentFound = true;
Expand Down

0 comments on commit 2facba2

Please sign in to comment.