Skip to content

Commit e61b663

Browse files
committed
detekt
1 parent 750a232 commit e61b663

File tree

1 file changed

+1
-1
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/workspace

1 file changed

+1
-1
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/workspace/WorkspaceServiceHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class WorkspaceServiceHandler(
8383
private fun createMatchers(filters: List<FileOperationFilter>?): List<Pair<PathMatcher, String>> =
8484
filters?.map { filter ->
8585
FileSystems.getDefault().getPathMatcher("glob:${filter.pattern.glob}") to filter.pattern.matches
86-
} ?: emptyList()
86+
}.orEmpty()
8787

8888
private fun shouldHandleFile(file: VirtualFile, operation: FileOperationType): Boolean {
8989
val matchers = operationMatchers[operation] ?: return false

0 commit comments

Comments
 (0)