fix(lint): automated linting, with simple formatter.

This commit is contained in:
Houmgaor
2025-10-19 22:43:05 +02:00
parent f79e05c0c9
commit 1398383a8d
12 changed files with 84 additions and 104 deletions

View File

@@ -12,9 +12,7 @@ import (
func removeSessionFromSemaphore(s *Session) {
s.server.semaphoreLock.Lock()
for _, semaphore := range s.server.semaphore {
if _, exists := semaphore.clients[s]; exists {
delete(semaphore.clients, s)
}
delete(semaphore.clients, s)
}
s.server.semaphoreLock.Unlock()
}