From bf6b8c42e5f81aa398f61e671654423eabc1e2f9 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Thu, 1 Feb 2024 15:49:03 +0600 Subject: [PATCH] refactor: update comments --- pkg/nodejs/pnpm/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nodejs/pnpm/parse.go b/pkg/nodejs/pnpm/parse.go index cdf9a33b..59a386c6 100644 --- a/pkg/nodejs/pnpm/parse.go +++ b/pkg/nodejs/pnpm/parse.go @@ -71,7 +71,7 @@ func (p *Parser) parse(lockVer float64, lockFile LockFile) ([]types.Library, []t continue } - // There is cases when `depPath` doesn't contain name ad version of dependency + // Dependency name may be present in dependencyPath or Name field. Same for Version. // e.g. packages installed from local directory or tarball // cf. https://github.com/pnpm/spec/blob/274ff02de23376ad59773a9f25ecfedd03a41f64/lockfile/6.0.md#packagesdependencypathname name := info.Name