Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adolsalamanca committed Mar 13, 2022
1 parent 454e787 commit e5bfa49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/envrc/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ type netrcLine struct {
password string
}

// ReadEnvrcPassword retrieves password for the desired
// ReadEnvrcPassword retrieves password for the desired server and login.
func ReadEnvrcPassword(serverURL string, login string) (string, error) {
URL, err := url.ParseRequestURI(serverURL)
if err != nil {
return "", err
}

netrcLines, err := readNetrc()
if err != nil {
return "", err
Expand All @@ -34,7 +38,6 @@ func ReadEnvrcPassword(serverURL string, login string) (string, error) {

func readNetrc() ([]netrcLine, error) {
path, err := netrcPath()

if err != nil {
return []netrcLine{}, err
}
Expand Down

0 comments on commit e5bfa49

Please sign in to comment.