Skip to content

Commit 20f67ee

Browse files
committed
fix to use refreshAndFindFileByNioFile instead
1 parent 7872137 commit 20f67ee

File tree

1 file changed

+1
-1
lines changed
  • plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model

1 file changed

+1
-1
lines changed

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerArtifact.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ open class CodeModernizerArtifact(
129129
return description.map { patchInfo ->
130130
val patchFile = patchesDir.resolve(patchInfo.filename)
131131
if (patchFile.toFile().exists()) {
132-
fileSystem.findFileByNioFile(patchFile)
132+
fileSystem.refreshAndFindFileByNioFile(patchFile)
133133
?: error("Could not find patch: ${patchInfo.filename}")
134134
} else {
135135
error("Patch file not found: ${patchInfo.filename}")

0 commit comments

Comments
 (0)