From 006cb0c0cfa197d94eb03f911731839d211341f3 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Sat, 13 Feb 2021 06:31:34 +0100 Subject: [PATCH] mirror: Fix behavior under Windows when source url is S3 (#3611) Removed one block of code which seems to be useless and no comment with it. This was causing issue doing mirroring under Windows. --- cmd/mirror-url.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/mirror-url.go b/cmd/mirror-url.go index ecf36e90..884d2687 100644 --- a/cmd/mirror-url.go +++ b/cmd/mirror-url.go @@ -83,10 +83,6 @@ func checkMirrorSyntax(ctx context.Context, cliCtx *cli.Context, encKeyDB map[st srcURL = origSrcURL } } - - if !strings.HasSuffix(srcURL, string(srcContent.URL.Separator)) { - srcURL += string(srcContent.URL.Separator) - } } return