Skip to content

Commit

Permalink
Fix Ktlint error
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNesto committed Jul 16, 2023
1 parent c15638a commit a0ca0da
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ class FabricClientUseScopeEnlarger : UseScopeEnlarger() {

if (loomData.splitMinecraftJar) {
return GlobalSearchScope.filesScope(element.project) {
DumbService.getInstance(module.project).runReadActionInSmartMode(Computable {
val moduleWithDeps = GlobalSearchScope.moduleWithDependenciesScope(module)
FilenameIndex.getVirtualFilesByName(FabricConstants.FABRIC_MOD_JSON, moduleWithDeps)
})
DumbService.getInstance(module.project).runReadActionInSmartMode(
Computable {
val moduleWithDeps = GlobalSearchScope.moduleWithDependenciesScope(module)
FilenameIndex.getVirtualFilesByName(FabricConstants.FABRIC_MOD_JSON, moduleWithDeps)
}
)
}
}

Expand Down

0 comments on commit a0ca0da

Please sign in to comment.