Skip to content

Commit f9edf37

Browse files
committed
fix: fix version setup
1 parent 38589d5 commit f9edf37

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/com/koxudaxi/ruff/RuffCacheService.kt

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ class RuffCacheService(val project: Project) {
9292
if (projectRef.isDisposed) return@supplyAsync null
9393
val newVersion = fetchVersionFromCommand()
9494
if (!projectRef.isDisposed) {
95-
lock.withLock {
96-
version = newVersion
97-
}
95+
setVersion(newVersion)
9896
}
9997
newVersion
10098
}, executor)

0 commit comments

Comments
 (0)