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