Run golangci-lint using a Github Action

This commit is contained in:
Erik Dubbelboer
2019-11-16 15:38:01 +01:00
parent 5f66658800
commit 32793db72d
32 changed files with 335 additions and 302 deletions
+2 -3
View File
@@ -75,7 +75,7 @@ func (w *writer) Close() error {
func (w *writer) Reset(dstW io.Writer) {
w.xw.Reset()
w.do(opReset)
w.do(opReset) //nolint:errcheck
w.dstW = dstW
}
@@ -125,8 +125,7 @@ func (w *xWriter) Write(p []byte) (int, error) {
if w.bb == nil {
w.bb = bufferPool.Get()
}
w.bb.Write(p)
return len(p), nil
return w.bb.Write(p)
}
func (w *xWriter) Reset() {