Skip to content

Commit 2b783c5

Browse files
committed
:|
1 parent 69e02e1 commit 2b783c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/files/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (c *Cache) prepare(ctx context.Context, fileID uuid.UUID) *lazy.ValueWithEr
8181
c.data[fileID] = entry
8282
}
8383

84-
entry.refCount += 1
84+
entry.refCount++
8585
return entry.value
8686
}
8787

@@ -98,7 +98,7 @@ func (c *Cache) Release(fileID uuid.UUID) {
9898
// this function with an incorrect ID. Should this function return an error?
9999
return
100100
}
101-
entry.refCount -= 1
101+
entry.refCount--
102102
if entry.refCount > 0 {
103103
return
104104
}

0 commit comments

Comments
 (0)