feat(ci): update golangci-lint and action (#325)
* Update linter - Update Github golangci-lint-action to v3 - Update golangci-lint to v1.52.2 * Fix linter issues after updating to linter 1.52.2
This commit is contained in:
@@ -27,13 +27,13 @@ type MockFS struct {
|
||||
db *db.DB
|
||||
}
|
||||
|
||||
func New(t testing.TB) *MockFS { return new(t, []string{""}, "") }
|
||||
func NewWithDirs(t testing.TB, dirs []string) *MockFS { return new(t, dirs, "") }
|
||||
func New(t testing.TB) *MockFS { return newMockFS(t, []string{""}, "") }
|
||||
func NewWithDirs(t testing.TB, dirs []string) *MockFS { return newMockFS(t, dirs, "") }
|
||||
func NewWithExcludePattern(t testing.TB, excludePattern string) *MockFS {
|
||||
return new(t, []string{""}, excludePattern)
|
||||
return newMockFS(t, []string{""}, excludePattern)
|
||||
}
|
||||
|
||||
func new(t testing.TB, dirs []string, excludePattern string) *MockFS {
|
||||
func newMockFS(t testing.TB, dirs []string, excludePattern string) *MockFS {
|
||||
dbc, err := db.NewMock()
|
||||
if err != nil {
|
||||
t.Fatalf("create db: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user