Upgrade to golangci-lint v2 (#1008)

This commit is contained in:
Nathan Baulch
2026-01-05 01:54:29 +11:00
committed by GitHub
parent 9702fae9b8
commit a675c6b3e2
45 changed files with 568 additions and 649 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package main
import (
"bytes"
"fmt"
"errors"
"io"
"strings"
"testing"
@@ -56,5 +56,5 @@ a = 42`),
type badReader struct{}
func (r *badReader) Read([]byte) (int, error) {
return 0, fmt.Errorf("reader failed on purpose")
return 0, errors.New("reader failed on purpose")
}