diff options
author | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-21 22:05:05 +0200 |
---|---|---|
committer | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-26 01:58:19 +0200 |
commit | a891bc90b78921a64e3abb901c4976788890013a (patch) | |
tree | 0644c6a0eeb060e7535f176e00f8a2e35feff655 /pkg/commands/os.go | |
parent | 7a74bc504bbfe99e7f74ba8981cfc771db4e98a3 (diff) |
simplify method
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r-- | pkg/commands/os.go | 3 |
1 files changed, 1 insertions, 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 |