Skip to content

Commit

Permalink
chore(node): Remove unneeded open modifiers from Yarn code
Browse files Browse the repository at this point in the history
As no more inheritance is involved, also `open` modifiers are not
needed anymore.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 6, 2024
1 parent 7a11f09 commit 513a089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/package-managers/node/src/main/kotlin/yarn/Yarn.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 513a089

Please sign in to comment.