aboutsummaryrefslogtreecommitdiff
path: root/fasthttputil
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-11 09:35:15 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-11 15:35:15 +0800
commit934f04e33096b7884d96135d44f2879a82e54a94 (patch)
tree98cd897d8d434aee3c5a95046f9f02ebfcb3721d /fasthttputil
parentRename unexported funcs, vars to match common Go (#1488) (diff)
downloadfasthttp-934f04e33096b7884d96135d44f2879a82e54a94.tar.gz
fasthttp-934f04e33096b7884d96135d44f2879a82e54a94.tar.bz2
fasthttp-934f04e33096b7884d96135d44f2879a82e54a94.zip
Refactor golangci-lint config and remove redundant nolints (#1486)
* Refactor golangci-lint config - Use golangci-lint-action for GitHub workflow. - Add additional golangci-lint run options. - Remove unused nolint directives. * Revert exclude-use-default option
Diffstat (limited to 'fasthttputil')
-rw-r--r--fasthttputil/inmemory_listener.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fasthttputil/inmemory_listener.go b/fasthttputil/inmemory_listener.go
index b0ad189..1aaa8e1 100644
--- a/fasthttputil/inmemory_listener.go
+++ b/fasthttputil/inmemory_listener.go
@@ -121,8 +121,8 @@ func (ln *InmemoryListener) DialWithLocalAddr(local net.Addr) (net.Conn, error)
// Wait until the connection has been accepted.
<-accepted
} else {
- sConn.Close() //nolint:errcheck
- cConn.Close() //nolint:errcheck
+ _ = sConn.Close()
+ _ = cConn.Close()
cConn = nil
}
ln.lock.Unlock()