Code refactoring (change interface to any)
This commit is contained in:
@@ -52,7 +52,7 @@ func Init() {
|
||||
}
|
||||
|
||||
if log.Debug().Enabled() {
|
||||
srv.Listen(func(msg interface{}) {
|
||||
srv.Listen(func(msg any) {
|
||||
switch msg.(type) {
|
||||
case string, error:
|
||||
log.Debug().Msgf("[webtorrent] %s", msg)
|
||||
|
||||
Reference in New Issue
Block a user