mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
update golangci-lint configuration (#5182)
This commit is contained in:
parent
ac1d4360b2
commit
ff187b6d8a
80 changed files with 294 additions and 309 deletions
|
|
@ -30,7 +30,7 @@ import (
|
|||
"github.com/bluenviron/mediamtx/internal/servers/webrtc"
|
||||
)
|
||||
|
||||
func interfaceIsEmpty(i interface{}) bool {
|
||||
func interfaceIsEmpty(i any) bool {
|
||||
return reflect.ValueOf(i).Kind() != reflect.Ptr || reflect.ValueOf(i).IsNil()
|
||||
}
|
||||
|
||||
|
|
@ -220,7 +220,7 @@ func (a *API) Close() {
|
|||
}
|
||||
|
||||
// Log implements logger.Writer.
|
||||
func (a *API) Log(level logger.Level, format string, args ...interface{}) {
|
||||
func (a *API) Log(level logger.Level, format string, args ...any) {
|
||||
a.Parent.Log(level, "[API] "+format, args...)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue