Address Sonar findings and move noise to direct dependency

This commit is contained in:
Viktor Liu
2026-05-21 17:55:27 +02:00
parent ee348ba007
commit 5e67febf57
4 changed files with 35 additions and 27 deletions
+1 -1
View File
@@ -1038,7 +1038,7 @@ func (s *Server) acquireAttachSession() (ScreenCapturer, func()) {
cc.ClientConnect()
return s.capturer, cc.ClientDisconnect
}
return s.capturer, func() {}
return s.capturer, func() { /* capturer has no per-client disconnect hook */ }
}
// modeString returns a human-readable session mode name.