update linter settings (#4790)

This commit is contained in:
Alessandro Ros
2025-07-26 16:44:32 +02:00
committed by GitHub
parent 7ac752097b
commit d423a71aaa
52 changed files with 320 additions and 225 deletions

View File

@@ -32,7 +32,8 @@ func TestPathAutoDeletion(t *testing.T) {
br := bufio.NewReader(conn)
if ca == "describe" {
u, err := base.ParseURL("rtsp://localhost:8554/mypath")
var u *base.URL
u, err = base.ParseURL("rtsp://localhost:8554/mypath")
require.NoError(t, err)
byts, _ := base.Request{
@@ -50,7 +51,8 @@ func TestPathAutoDeletion(t *testing.T) {
require.NoError(t, err)
require.Equal(t, base.StatusNotFound, res.StatusCode)
} else {
u, err := base.ParseURL("rtsp://localhost:8554/mypath/trackID=0")
var u *base.URL
u, err = base.ParseURL("rtsp://localhost:8554/mypath/trackID=0")
require.NoError(t, err)
byts, _ := base.Request{