Skip to content

Commit

Permalink
refactor(npm): Drop a slightly misleading log output
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fviernau authored and sschuberth committed Oct 23, 2024
1 parent cbdb228 commit 7143c32
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/package-managers/node/src/main/kotlin/Npm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7143c32

Please sign in to comment.