mirror of
https://github.com/matter-labs/vault-auth-tee.git
synced 2025-07-20 23:33:56 +02:00
all: use errors.New() which has no param instead of fmt.Errorf()
This commit is contained in:
parent
f0ea96f2e4
commit
f62d3e0d0f
3 changed files with 14 additions and 11 deletions
|
@ -7,6 +7,7 @@ package vault_auth_tee
|
|||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"testing"
|
||||
|
@ -189,7 +190,7 @@ func testAccStepTEE(_ *testing.T, name string, types string, mrSigner string, mr
|
|||
Data: data,
|
||||
Check: func(resp *logical.Response) error {
|
||||
if resp == nil && expectError {
|
||||
return fmt.Errorf("expected error but received nil")
|
||||
return errors.New("expected error but received nil")
|
||||
}
|
||||
return nil
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue