@@ -4,7 +4,7 @@ package fake
44
55import (
66 "context"
7- "fmt "
7+ "errors "
88
99 "github.com/hashicorp/go-uuid"
1010
@@ -80,7 +80,7 @@ func (f *fakeConnector) ListZonesID(_ context.Context) ([]string, error) {
8080
8181func (f * fakeConnector ) GetVolumeByID (_ context.Context , volumeID string ) (* cloud.Volume , error ) {
8282 if volumeID == "" {
83- return nil , fmt . Errorf ("invalid volume ID: empty string" )
83+ return nil , errors . New ("invalid volume ID: empty string" )
8484 }
8585 vol , ok := f .volumesByID [volumeID ]
8686 if ok {
@@ -92,7 +92,7 @@ func (f *fakeConnector) GetVolumeByID(_ context.Context, volumeID string) (*clou
9292
9393func (f * fakeConnector ) GetVolumeByName (_ context.Context , name string ) (* cloud.Volume , error ) {
9494 if name == "" {
95- return nil , fmt . Errorf ("invalid volume name: empty string" )
95+ return nil , errors . New ("invalid volume name: empty string" )
9696 }
9797 vol , ok := f .volumesByName [name ]
9898 if ok {
@@ -177,7 +177,7 @@ func (f *fakeConnector) DeleteSnapshot(ctx context.Context, snapshotID string) e
177177
178178func (f * fakeConnector ) GetSnapshotByName (_ context.Context , name string ) (* cloud.Snapshot , error ) {
179179 if name == "" {
180- return nil , fmt . Errorf ("invalid snapshot name: empty string" )
180+ return nil , errors . New ("invalid snapshot name: empty string" )
181181 }
182182 if snap , ok := f .snapshotsByName [name ]; ok {
183183 return snap , nil
0 commit comments