From 82bc9816658c19a58d7ae93b36f9d80f7ffa725f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 24 Apr 2016 18:49:54 +0100 Subject: [PATCH] update: add missing error check --- cmd/fdroidcl/update.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/fdroidcl/update.go b/cmd/fdroidcl/update.go index 67d747c..e601245 100644 --- a/cmd/fdroidcl/update.go +++ b/cmd/fdroidcl/update.go @@ -75,6 +75,9 @@ func downloadEtag(url, path string, sum []byte) error { defer fmt.Println() client := &http.Client{} req, err := http.NewRequest("GET", url, nil) + if err != nil { + return err + } etagPath := path + "-etag" if _, err := os.Stat(path); err == nil {