Skip to content

Commit 98177c7

Browse files
meanmailclaude
andcommitted
Fix compilation error: use correct allowSlowOperations syntax
Use allowSlowOperations(String).use { } pattern instead of incorrect generic type syntax. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 0de53b2 commit 98177c7

File tree

1 file changed

+1
-1
lines changed
  • intellij-plugin/hs-core/src/org/hyperskill/academy/learning/newproject/coursesStorage

1 file changed

+1
-1
lines changed

intellij-plugin/hs-core/src/org/hyperskill/academy/learning/newproject/coursesStorage/CoursesStorageBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ open class CoursesStorageBase : SimplePersistentStateComponent<UserCoursesState>
2626
fun hasCourse(course: Course): Boolean {
2727
val courseMetaInfo = getCourseMetaInfo(course) ?: return false
2828
// Allow slow VFS operations when checking if course location is valid
29-
return SlowOperations.allowSlowOperations<Boolean> {
29+
return SlowOperations.allowSlowOperations("Checking course location validity").use {
3030
courseMetaInfo.isLocationValid
3131
}
3232
}

0 commit comments

Comments
 (0)