Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #28 from caarlos0/perf
Browse files Browse the repository at this point in the history
faster slice
  • Loading branch information
caarlos0 committed Jun 26, 2015
2 parents 6a07157 + 1788e2d commit ae114ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.go
Expand Up @@ -25,7 +25,7 @@ func ProcessStdin(stdin io.Reader, home string) {

func Update(home string) {
entries, _ := ioutil.ReadDir(home)
bundles := make([]Bundle, 0)
var bundles []Bundle
for _, bundle := range entries {
if bundle.Mode().IsDir() && bundle.Name()[0] != '.' {
bundles = append(bundles, NewGitBundle(bundle.Name(), home))
Expand Down

0 comments on commit ae114ed

Please sign in to comment.