aboutsummaryrefslogtreecommitdiff
path: root/core/container
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-29 19:07:34 +0100
committergingerBill <bill@gingerbill.org>2024-06-29 19:07:34 +0100
commit3f9a58808cd95946043ab38523588aec5d8c68dc (patch)
tree05083ccf8376a91d023ee84aa0e4ba4f066ab7a1 /core/container
parente8517e2694524a94ee88cf925a4a667fb6575f90 (diff)
More style improvements
Diffstat (limited to 'core/container')
-rw-r--r--core/container/lru/lru_cache.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/container/lru/lru_cache.odin b/core/container/lru/lru_cache.odin
index 23f01fac3..f8aa55dc2 100644
--- a/core/container/lru/lru_cache.odin
+++ b/core/container/lru/lru_cache.odin
@@ -70,8 +70,7 @@ set :: proc(c: ^$C/Cache($Key, $Value), key: Key, value: Value) -> runtime.Alloc
if c.count == c.capacity {
e = c.tail
_remove_node(c, e)
- }
- else {
+ } else {
c.count += 1
e = new(Node(Key, Value), c.node_allocator) or_return
}