summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAnthony HAMON <anthony.hamon@iadvize.com>2018-08-27 22:41:23 +0200
committerAnthony HAMON <hamon.anth@gmail.com>2018-08-29 12:03:32 +0200
commit983d0bd5868d2cd7f1aa4a793247de3dace60de4 (patch)
treeca83b941b2ea255d81c739feb790d1fe9f1558c4 /pkg
parentca9ce226938c20f29cf528581fae070be7e7f98c (diff)
replace make
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index b56650e97..25cde40a1 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -46,8 +46,8 @@ func (c *GitCommand) SetupGit() {
// GetStashEntries stash entryies
func (c *GitCommand) GetStashEntries() []StashEntry {
- stashEntries := make([]StashEntry, 0)
rawString, _ := c.OSCommand.RunCommandWithOutput("git stash list --pretty='%gs'")
+ stashEntries := []StashEntry{}
for i, line := range utils.SplitLines(rawString) {
stashEntries = append(stashEntries, stashEntryFromLine(line, i))
}