Skip to content

Commit 2036845

Browse files
committed
yay
1 parent 2b783c5 commit 2036845

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/files/cache.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ func (c *Cache) Release(fileID uuid.UUID) {
9898
// this function with an incorrect ID. Should this function return an error?
9999
return
100100
}
101+
101102
entry.refCount--
102103
if entry.refCount > 0 {
103104
return
104105
}
106+
105107
delete(c.data, fileID)
106108
}

0 commit comments

Comments
 (0)