Skip to content

Commit

Permalink
Merge pull request #28 from bweston92/patch-1
Browse files Browse the repository at this point in the history
Trim whitespace from auth token when read from file
  • Loading branch information
iamtgray committed Dec 28, 2017
2 parents 7aa1ad4 + 962e12b commit da1e8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Expand Up @@ -109,7 +109,7 @@ func getAuth(token string, tokenFile string) (string, error) {
if err != nil {
return "", err
}
return string(b), err
return strings.TrimSpace(string(b)), err

}

Expand Down

0 comments on commit da1e8cd

Please sign in to comment.