Remove unnecessary assignments to the blank identifier.

This commit is contained in:
Joachim Bauch 2020-07-31 14:57:04 +02:00
parent 023f2715f5
commit b8c9e816b3
Failed to extract signature
2 changed files with 3 additions and 3 deletions

View file

@ -456,13 +456,13 @@ func (h *Hub) GetSessionByPublicId(sessionId string) Session {
}
h.mu.Lock()
session, _ := h.sessions[data.Sid]
session := h.sessions[data.Sid]
h.mu.Unlock()
return session
}
func (h *Hub) checkExpiredSessions(now time.Time) {
for s, _ := range h.expiredSessions {
for s := range h.expiredSessions {
if s.IsExpired(now) {
h.mu.Unlock()
log.Printf("Closing expired session %s (private=%s)", s.PublicId(), s.PrivateId())

View file

@ -245,7 +245,7 @@ func (m *mcuJanus) doReconnect() {
m.mu.Unlock()
m.muClients.Lock()
for client, _ := range m.clients {
for client := range m.clients {
go client.NotifyReconnected()
}
m.muClients.Unlock()