MM-52532: Fix golangci warnings (#23709)
https://mattermost.atlassian.net/browse/MM-52532 - Replace golint with revive - Add makezero linter - Fix all the required linter failures Some issues in enterprise and public modules are yet to be fixed. We send this to expediate things.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
62a3ee8adc
Коммит
c249ba4a66
@@ -237,17 +237,17 @@ func TestEqual(t *testing.T) {
|
||||
|
||||
t.Run("no diff", func(t *testing.T) {
|
||||
old := minimalConfig.Clone()
|
||||
new := minimalConfig.Clone()
|
||||
diff, err := equal(old, new)
|
||||
n := minimalConfig.Clone()
|
||||
diff, err := equal(old, n)
|
||||
require.NoError(t, err)
|
||||
require.False(t, diff)
|
||||
})
|
||||
|
||||
t.Run("diff", func(t *testing.T) {
|
||||
old := minimalConfig.Clone()
|
||||
new := minimalConfig.Clone()
|
||||
new.SqlSettings = model.SqlSettings{}
|
||||
diff, err := equal(old, new)
|
||||
n := minimalConfig.Clone()
|
||||
n.SqlSettings = model.SqlSettings{}
|
||||
diff, err := equal(old, n)
|
||||
require.NoError(t, err)
|
||||
require.True(t, diff)
|
||||
})
|
||||
|
||||
Ссылка в новой задаче
Block a user