errcheck issues fixed (#29065)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3780887629
Коммит
e3f6b16927
@@ -112,7 +112,6 @@ issues:
|
|||||||
channels/app/notification_push.go|\
|
channels/app/notification_push.go|\
|
||||||
channels/app/notification_test.go|\
|
channels/app/notification_test.go|\
|
||||||
channels/app/onboarding_test.go|\
|
channels/app/onboarding_test.go|\
|
||||||
channels/app/opengraph_test.go|\
|
|
||||||
channels/app/permissions.go|\
|
channels/app/permissions.go|\
|
||||||
channels/app/permissions_test.go|\
|
channels/app/permissions_test.go|\
|
||||||
channels/app/platform/busy_test.go|\
|
channels/app/platform/busy_test.go|\
|
||||||
|
|||||||
@@ -28,14 +28,16 @@ func BenchmarkForceHTMLEncodingToUTF8(b *testing.B) {
|
|||||||
r := forceHTMLEncodingToUTF8(strings.NewReader(HTML), ContentType)
|
r := forceHTMLEncodingToUTF8(strings.NewReader(HTML), ContentType)
|
||||||
|
|
||||||
og := opengraph.NewOpenGraph()
|
og := opengraph.NewOpenGraph()
|
||||||
og.ProcessHTML(r)
|
err := og.ProcessHTML(r)
|
||||||
|
require.NoError(b, err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
b.Run("without converting", func(b *testing.B) {
|
b.Run("without converting", func(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
og := opengraph.NewOpenGraph()
|
og := opengraph.NewOpenGraph()
|
||||||
og.ProcessHTML(strings.NewReader(HTML))
|
err := og.ProcessHTML(strings.NewReader(HTML))
|
||||||
|
require.NoError(b, err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user