Skip to content

Commit

Permalink
Fix enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
WarningImHack3r authored Jun 22, 2024
1 parent e4a6954 commit 8ca880d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DependencyManager(private val project: Project) {

private fun getPackageManager(): PackageManager? {
val fileManager = FileManager.getInstance(project)
return PackageManager.entries.firstOrNull {
return enumValues<PackageManager>().firstOrNull {
fileManager.getVirtualFilesByName(it.getLockFileName()).isNotEmpty()
}
}
Expand Down

0 comments on commit 8ca880d

Please sign in to comment.