From 5a38e0ba3f44143d0eef51724ad44b499a5f0c6d Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Fri, 7 Jul 2017 21:56:12 +0200 Subject: [PATCH] script: Trivial lint error in changelog.go --- script/changelog.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/changelog.go b/script/changelog.go index 49637e5a5..04570565a 100644 --- a/script/changelog.go +++ b/script/changelog.go @@ -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 != "" {