From a891bc90b78921a64e3abb901c4976788890013a Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Tue, 21 Aug 2018 22:05:05 +0200 Subject: [PATCH] simplify method --- pkg/commands/os.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/commands/os.go b/pkg/commands/os.go index f84fe5991..93c42796a 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -153,8 +153,7 @@ func (c *OSCommand) Quote(message string) string { // Unquote removes wrapping quotations marks if they are present // this is needed for removing quotes from staged filenames with spaces func (c *OSCommand) Unquote(message string) string { - message = strings.Replace(message, `"`, "", -1) - return message + return strings.Replace(message, `"`, "", -1) } // AppendLineToFile adds a new line in file