Skip to content

Commit fef3b06

Browse files
committed
Fixing lint issues
1 parent 973b710 commit fef3b06

File tree

1 file changed

+9
-11
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts

1 file changed

+9
-11
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/LspUtils.kt

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ import com.intellij.openapi.util.SystemInfo
77
import java.nio.file.Path
88
import java.nio.file.Paths
99

10-
fun getToolkitsCommonCachePath(): Path {
11-
return when {
12-
SystemInfo.isWindows -> {
13-
Paths.get(System.getenv("APPDATA"))
14-
}
15-
SystemInfo.isMac -> {
16-
Paths.get(System.getProperty("user.home"), "Library", "Caches")
17-
}
18-
else -> {
19-
Paths.get(System.getProperty("user.home"), ".cache")
20-
}
10+
fun getToolkitsCommonCachePath(): Path = when {
11+
SystemInfo.isWindows -> {
12+
Paths.get(System.getenv("APPDATA"))
13+
}
14+
SystemInfo.isMac -> {
15+
Paths.get(System.getProperty("user.home"), "Library", "Caches")
16+
}
17+
else -> {
18+
Paths.get(System.getProperty("user.home"), ".cache")
2119
}
2220
}

0 commit comments

Comments
 (0)