diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-19 12:51:25 +0200 |
---|---|---|
committer | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-19 12:51:25 +0200 |
commit | f533cced97b7f6b4b7ef5893d715f2eb473c8f0d (patch) | |
tree | 65799b63b12f589e0dd2c398cbfcc5126834cb45 /filetree | |
parent | 09296c0214c4cc7477fe53bc79c54805899c6d19 (diff) |
Removed empty else branch
Looks like an artifact from the past.
Diffstat (limited to 'filetree')
-rw-r--r-- | filetree/cache.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filetree/cache.go b/filetree/cache.go index 3dde39a..82c1795 100644 --- a/filetree/cache.go +++ b/filetree/cache.go @@ -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 |