Skip to content

Commit 0ae9b33

Browse files
committed
remove useless condition
1 parent e0fa633 commit 0ae9b33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/testing_recorder.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,10 @@ func customS3Matcher(r *http.Request, i cassette.Request) bool {
126126
}
127127

128128
func unescapeDockerURL(i *cassette.Interaction) error {
129-
if strings.HasPrefix(i.Request.URL, "http://"+escapedUnixDockerEngine) {
130-
i.Request.URL = regexp.MustCompile(`http://`+escapedUnixDockerEngine+`(.+)?`).ReplaceAllString(
129+
i.Request.URL = regexp.MustCompile(`http://`+escapedUnixDockerEngine+`(.+)?`).
130+
ReplaceAllString(
131131
i.Request.URL,
132132
"http://"+unixDockerEngine+"${1}")
133-
}
134133

135134
return nil
136135
}

0 commit comments

Comments
 (0)