cosmetic: linting

This commit is contained in:
Matthias Radestock committed 2015-03-27 00:43:26 +00:00
1 parent 2d83fcc398
commit e3ef5433cf
13 files changed
+48 -53

No files matched your search

+1 -2
View File
@@ -40,9 +40,8 @@ func (cache *MacCache) Enter(mac net.HardwareAddr, peer *Peer) bool {
if found && entry.peer == peer && now.Before(entry.lastSeen.Add(cache.maxAge/10)) {
cache.RUnlock()
return false
} else {
cache.RUnlock()
}
cache.RUnlock()
cache.Lock()
defer cache.Unlock()
entry, found = cache.table[key]