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

Commit2b783c5

Browse files
committed
:|
1 parent69e02e1 commit2b783c5

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
returnentry.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
ifentry.refCount>0 {
103103
return
104104
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp