Skip to content

Commit

Permalink
inline error
Browse files Browse the repository at this point in the history
  • Loading branch information
tritone committed Sep 24, 2021
1 parent 23d8a7f commit c278730
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage/integration_test.go
Expand Up @@ -3026,8 +3026,7 @@ func TestIntegration_PublicBucket(t *testing.T) {

errCode := func(err error) int {
var err2 *googleapi.Error
ok := xerrors.As(err, &err2)
if !ok {
if ok := xerrors.As(err, &err2); !ok {
return -1
}
return err2.Code
Expand Down

0 comments on commit c278730

Please sign in to comment.