Skip to content

Commit b7e25d5

Browse files
committed
fixup! tests updates post gcpService unused functions removal
removal of additional unused checks
1 parent ea9cb65 commit b7e25d5

File tree

1 file changed

+2
-4
lines changed
  • tests/functional/raw-node/test/GCP/bucket

1 file changed

+2
-4
lines changed

tests/functional/raw-node/test/GCP/bucket/get.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ gcpClient.listObjects = (params, callback) => {
2121
return gcpClient.send(command)
2222
.then(data => callback(null, data))
2323
.catch(err => {
24-
if (err && err.$metadata && err.$metadata.httpStatusCode &&
25-
err.statusCode === undefined) {
24+
if ( err.statusCode === undefined) {
2625
// eslint-disable-next-line no-param-reassign
2726
err.statusCode = err.$metadata.httpStatusCode;
2827
}
@@ -33,8 +32,7 @@ gcpClient.listObjects = (params, callback) => {
3332
gcpClient.getBucket = (params, callback) =>
3433
gcpClient.headBucket(params, (err, res) => {
3534
if (err) {
36-
if (err.$metadata && err.$metadata.httpStatusCode &&
37-
err.statusCode === undefined) {
35+
if (err.statusCode === undefined) {
3836
// eslint-disable-next-line no-param-reassign
3937
err.statusCode = err.$metadata.httpStatusCode;
4038
}

0 commit comments

Comments
 (0)