Skip to content

Commit

Permalink
chore: use any instead of filter
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei committed Jun 1, 2024
1 parent e97f20f commit ddee296
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class ProjectStartupActivity : ProjectActivity {
.connect().use { connection ->
val ideaProject: IdeaProject = connection.getModel(IdeaProject::class.java)
project.leavesknifeConfigService.enablePlugin =
ideaProject.modules
.filter { it.name == "paper-api-generator" }.isNotEmpty()
ideaProject.modules.any { it.name == "paper-api-generator" }
}
}
}

0 comments on commit ddee296

Please sign in to comment.