Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c4c3ef

Browse files
committed
floop
1 parentba1f519 commit9c4c3ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎coderd/files/cache.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ func (c *Cache) Release(fileID uuid.UUID) {
9797
return
9898
}
9999
refCount:=entry.refCount.Add(-1)
100-
ifrefCount<1 {
101-
delete(c.data,fileID)
100+
ifrefCount>0 {
101+
return
102102
}
103+
delete(c.data,fileID)
103104
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp