Skip to content

Commit d262131

Browse files
committed
Fix for detektMain errors
1 parent 2ea7759 commit d262131

File tree

1 file changed

+2
-2
lines changed
  • plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util

1 file changed

+2
-2
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/GitIgnoreFilteringUtil.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class GitIgnoreFilteringUtil(private val moduleDir: VirtualFile) {
6969
} else {
7070
emptySet()
7171
}
72-
} ?: emptySet()
72+
}.orEmpty()
7373
}
7474

7575
// gitignore patterns are not regex, method update needed.
@@ -98,5 +98,5 @@ class GitIgnoreFilteringUtil(private val moduleDir: VirtualFile) {
9898
return deferredResults.any { it.await() }
9999
}
100100

101-
private fun getRelativePath(file: VirtualFile): String = VfsUtil.getRelativePath(file, moduleDir) ?: ""
101+
private fun getRelativePath(file: VirtualFile): String = VfsUtil.getRelativePath(file, moduleDir).orEmpty()
102102
}

0 commit comments

Comments
 (0)