script: Trivial lint error in changelog.go

This commit is contained in:
Jakob Borg 2017-07-07 21:56:12 +02:00
parent c77490c32d
commit 5a38e0ba3f
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ func runError(cmd string, args ...string) ([]byte, error) {
func githubIssueTitle(n int) (string, error) {
req, err := http.NewRequest("GET", fmt.Sprintf("https://api.github.com/repos/syncthing/syncthing/issues/%d", n), nil)
if err != nil {
return "", err
}
user, token := os.Getenv("GITHUB_USERNAME"), os.Getenv("GITHUB_TOKEN")
if user != "" && token != "" {