From 7143c32a0e1bc4c2a7cb4dbe966e0db950342c5c Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Tue, 22 Oct 2024 15:20:09 +0200 Subject: [PATCH] refactor(npm): Drop a slightly misleading log output The log message sounds as if the function would have searched the 'package.json' and now found one. However, the function does not search anything. Simply remove that log output to simplify an upcoming change. Signed-off-by: Frank Viernau --- plugins/package-managers/node/src/main/kotlin/Npm.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/package-managers/node/src/main/kotlin/Npm.kt b/plugins/package-managers/node/src/main/kotlin/Npm.kt index c1a34edd5337..e4e479df79a2 100644 --- a/plugins/package-managers/node/src/main/kotlin/Npm.kt +++ b/plugins/package-managers/node/src/main/kotlin/Npm.kt @@ -245,10 +245,6 @@ open class Npm( * content via the `npm view` command. The result is a [Pair] with the raw identifier and the new package. */ internal fun parsePackage(workingDir: File, packageJsonFile: File): Package { - val packageDir = packageJsonFile.parentFile - - logger.debug { "Found a 'package.json' file in '$packageDir'." } - val packageJson = parsePackageJson(packageJsonFile) // The "name" and "version" fields are only required if the package is going to be published, otherwise they are