fix minor potential nil-pointer panic on line 89 (#8488)

This commit is contained in:
Denis Subbotin 2020-03-07 00:32:36 +03:00 committed by GitHub
parent cdeb22b14c
commit a9e605cc43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ func (b *backend) pathGenerateIntermediate(ctx context.Context, req *logical.Req
switch err.(type) {
case errutil.UserError:
return logical.ErrorResponse(err.Error()), nil
case errutil.InternalError:
default:
return nil, err
}
}