You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -260,12 +260,10 @@ data class CodeModernizerSessionContext(
260
260
if (depDirectory !=null) {
261
261
dependencyFiles.forEach { depFile ->
262
262
val relativePath =File(depFile.path).relativeTo(depDirectory)
263
-
if (depFile.path.contains("compilations.json")) {
264
-
if (File.separatorChar !='/') {
265
-
var content = depFile.readText()
266
-
content = content.replace("\\\\", "/")
267
-
depFile.writeText(content)
268
-
}
263
+
if (depFile.path.contains("compilations.json") &&File.separatorChar !='/') {
264
+
var content = depFile.readText()
265
+
content = content.replace("\\\\", "/")
266
+
depFile.writeText(content)
269
267
}
270
268
var relativePathString = relativePath.toPath().toString()
0 commit comments