Browse Source

script: Trivial lint error in changelog.go

Jakob Borg 8 years ago
parent
commit
5a38e0ba3f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      script/changelog.go

+ 3 - 0
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 != "" {