From 80736c54d3a24702733c6e8227e56b5067742802 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 11 Aug 2022 08:54:46 +0200 Subject: linguist: Ignore error in deferred close of zlib writer We already check the error when we manually close the zlib writer, but don't in the deferred call. This is fine though at it won't do anything in the happy path as the writer was closed already, and we already got an error in the unhappy path. Explicitly ignore the error to make our linters happy. --- .golangci.yml | 1 - 1 file changed, 1 deletion(-) (limited to '.golangci.yml') diff --git a/.golangci.yml b/.golangci.yml index a80d3f5fc..a8ebf5f14 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -53,7 +53,6 @@ linters-settings: # eventually fix. exclude-functions: # Close - - (*compress/zlib.Writer).Close - (*database/sql.DB).Close - (*database/sql.Rows).Close - (*github.com/hashicorp/yamux.Session).Close -- cgit v1.2.3