mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-11-26 09:00:57 +02:00
simplify method
This commit is contained in:
parent
7a74bc504b
commit
a891bc90b7
@ -153,8 +153,7 @@ func (c *OSCommand) Quote(message string) string {
|
|||||||
// Unquote removes wrapping quotations marks if they are present
|
// Unquote removes wrapping quotations marks if they are present
|
||||||
// this is needed for removing quotes from staged filenames with spaces
|
// this is needed for removing quotes from staged filenames with spaces
|
||||||
func (c *OSCommand) Unquote(message string) string {
|
func (c *OSCommand) Unquote(message string) string {
|
||||||
message = strings.Replace(message, `"`, "", -1)
|
return strings.Replace(message, `"`, "", -1)
|
||||||
return message
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppendLineToFile adds a new line in file
|
// AppendLineToFile adds a new line in file
|
||||||
|
Loading…
Reference in New Issue
Block a user