summary refs log tree commit diff stats
path: root/query.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-22 15:02:12 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-22 15:02:12 -0400
commitbce52652ceb54b325ac72cc9a173655ec0a80756 (patch)
tree3d4f44c1dd41d0f7301e9ec1e9ef510ef7b14ab5 /query.go
parent8e3bef29c6127b9ff33bb8d6f0481780f8a3568f (diff)
downloadgetwtxt-bce52652ceb54b325ac72cc9a173655ec0a80756.tar.gz
tweaked error handling
Diffstat (limited to 'query.go')
-rw-r--r--query.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/query.go b/query.go
index ac46223..63e203c 100644
--- a/query.go
+++ b/query.go
@@ -109,9 +109,6 @@ func apiEndpointQuery(w http.ResponseWriter, r *http.Request) error {
 
 	w.Header().Set("Content-Type", txtutf8)
 	_, err = w.Write(data)
-	if err != nil {
-		return err
-	}
 
-	return nil
+	return err
 }