File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/functional/raw-node/test/GCP/bucket Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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) => {
3332gcpClient . 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 }
You can’t perform that action at this time.
0 commit comments