Skip to content
Permalink
Browse files

Remove silly makes

  • Loading branch information...
frioux committed Apr 6, 2019
1 parent dd7c8ad commit 5d7af8d0222179039faa975e506406151c9e8510
Showing with 2 additions and 2 deletions.
  1. +2 −2 pkg/netrc/netrc.go
@@ -101,7 +101,7 @@ func lex(file io.Reader) []string {
}
return 0, nil, nil
})
tokens := make([]string, 0, 100)
tokens := []string{}
for scanner.Scan() {
tokens = append(tokens, scanner.Text())
}
@@ -110,7 +110,7 @@ func lex(file io.Reader) []string {

func parse(tokens []string) (Netrc, error) {
n := Netrc{}
n.Logins = make([]*Login, 0, 20)
n.Logins = []*Login{}
var machine *Login
for i, token := range tokens {
// group tokens into machines

0 comments on commit 5d7af8d

Please sign in to comment.
You can’t perform that action at this time.