File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11package testcontainers
22
33import (
4- "fmt "
4+ "errors "
55 "path/filepath"
66
77 "github.com/docker/docker/api/types/mount"
@@ -112,7 +112,7 @@ type DockerImageMountSource struct {
112112// Validate validates the source of the mount, ensuring that the subpath is a relative path
113113func (s DockerImageMountSource ) Validate () error {
114114 if ! filepath .IsLocal (s .Subpath ) {
115- return fmt . Errorf ("image mount source must be a local path" )
115+ return errors . New ("image mount source must be a local path" )
116116 }
117117 return nil
118118}
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package testcontainers
22
33import (
44 "errors"
5- "fmt"
65 "path/filepath"
76)
87
@@ -180,7 +179,7 @@ func (GenericImageMountSource) Type() MountType {
180179// Validate validates the source of the mount
181180func (s GenericImageMountSource ) Validate () error {
182181 if ! filepath .IsLocal (s .Subpath ) {
183- return fmt . Errorf ("image mount source must be a local path" )
182+ return errors . New ("image mount source must be a local path" )
184183 }
185184 return nil
186185}
You can’t perform that action at this time.
0 commit comments