1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-30 09:16:47 +02:00

chore: remove unnecessary space

Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
This commit is contained in:
Ryoga 2022-10-15 11:03:47 +09:00 committed by Ryooooooga
parent 11316b7a48
commit 8a9eefa4d2
No known key found for this signature in database
GPG Key ID: 07CF200DFCC20C25

View File

@ -51,7 +51,7 @@ func (self *StashCommands) Save(message string) error {
func (self *StashCommands) Store(sha string, message string) error {
trimmedMessage := strings.Trim(message, " \t")
if len(trimmedMessage) > 0 {
return self.cmd.New(fmt.Sprintf("git stash store %s -m %s", self.cmd.Quote(sha), self.cmd.Quote(trimmedMessage))).Run()
return self.cmd.New(fmt.Sprintf("git stash store %s -m %s", self.cmd.Quote(sha), self.cmd.Quote(trimmedMessage))).Run()
}
return self.cmd.New(fmt.Sprintf("git stash store %s", self.cmd.Quote(sha))).Run()
}