Removed empty else branch

Looks like an artifact from the past.
This commit is contained in:
Christian Muehlhaeuser 2019-07-19 12:51:25 +02:00
parent 09296c0214
commit f533cced97
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E

View File

@ -17,9 +17,8 @@ func (cache *TreeCache) Get(bottomTreeStart, bottomTreeStop, topTreeStart, topTr
key := TreeCacheKey{bottomTreeStart, bottomTreeStop, topTreeStart, topTreeStop}
if value, exists := cache.cache[key]; exists {
return value
} else {
}
value := cache.buildTree(key)
cache.cache[key] = value
return value