Remove error package and cause functions (#5784)

This commit is contained in:
kannappanr authored and GitHub committed 2018-04-10 09:36:37 -07:00
1 parent 217fb470a7
commit cef992a395
51 files changed
+186 -519

No files matched your search

+2 -4
View File
@@ -21,7 +21,6 @@ import (
"testing"
"github.com/minio/minio/pkg/disk"
"github.com/minio/minio/pkg/errors"
)
type testStorageRPCServer struct {
@@ -68,9 +67,8 @@ func createTestStorageServer(t *testing.T) *testStorageRPCServer {
}
func errorIfInvalidToken(t *testing.T, err error) {
realErr := errors.Cause(err)
if realErr != errInvalidToken {
t.Errorf("Expected to fail with %s but failed with %s", errInvalidToken, realErr)
if err != errInvalidToken {
t.Errorf("Expected to fail with %s but failed with %s", errInvalidToken, err)
}
}