From 513a08990fc7c034edca5bf54c8dc74eee19e916 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Thu, 5 Dec 2024 18:22:38 +0100 Subject: [PATCH] chore(node): Remove unneeded `open` modifiers from Yarn code As no more inheritance is involved, also `open` modifiers are not needed anymore. Signed-off-by: Sebastian Schuberth --- plugins/package-managers/node/src/main/kotlin/yarn/Yarn.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/package-managers/node/src/main/kotlin/yarn/Yarn.kt b/plugins/package-managers/node/src/main/kotlin/yarn/Yarn.kt index 654b45d229a7a..ec0bcd45d4fbd 100644 --- a/plugins/package-managers/node/src/main/kotlin/yarn/Yarn.kt +++ b/plugins/package-managers/node/src/main/kotlin/yarn/Yarn.kt @@ -111,7 +111,7 @@ open class Yarn( private val graphBuilder by lazy { DependencyGraphBuilder(YarnDependencyHandler(this)) } - protected open fun hasLockfile(projectDir: File) = NodePackageManager.YARN.hasLockfile(projectDir) + protected fun hasLockfile(projectDir: File) = NodePackageManager.YARN.hasLockfile(projectDir) /** * Load the submodule directories of the project defined in [moduleDir]. @@ -348,7 +348,7 @@ open class Yarn( run(workingDir, "install", "--ignore-scripts", "--ignore-engines", "--immutable") } - internal open fun getRemotePackageDetails(workingDir: File, packageName: String): PackageJson? { + internal fun getRemotePackageDetails(workingDir: File, packageName: String): PackageJson? { yarnInfoCache.read(packageName)?.let { return parsePackageJson(it) } val process = run(workingDir, "info", "--json", packageName)