From ba8d960c8fa8c636761fb56b6a3324df50d38595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96rn?= Date: Wed, 5 Oct 2016 08:26:32 +0200 Subject: [PATCH] using backtics instead of doublequotes --- src/restic/fs/file.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/restic/fs/file.go b/src/restic/fs/file.go index a2e6822f6..2f6c500b2 100644 --- a/src/restic/fs/file.go +++ b/src/restic/fs/file.go @@ -28,19 +28,19 @@ func fixpath(name string) string { abspath, err := filepath.Abs(name) if err == nil { // Check if \\?\UNC\ already exist - if strings.HasPrefix(abspath, "\\\\?\\UNC\\") { + if strings.HasPrefix(abspath, `\\?\UNC\`) { return abspath } // Check if \\?\ already exist - if strings.HasPrefix(abspath, "\\\\?\\") { + if strings.HasPrefix(abspath, `\\?\`) { return abspath } // Check if path starts with \\ - if strings.HasPrefix(abspath, "\\\\") { - return strings.Replace(abspath, "\\\\", "\\\\?\\UNC\\", 1) + if strings.HasPrefix(abspath, `\\`) { + return strings.Replace(abspath, `\\`, `\\?\UNC\`, 1) } // Normal path - return "\\\\?\\" + abspath + return `\\?\` + abspath } } return name