We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
also
let
1 parent 9101dd1 commit 90ec14eCopy full SHA for 90ec14e
plugins/package-managers/node/src/main/kotlin/yarn/Yarn.kt
@@ -255,7 +255,7 @@ open class Yarn(
255
projectDirs,
256
ancestorModuleDirs = dependencyModuleDirPath.subList(1, dependencyModuleDirPath.size),
257
ancestorModuleIds = ancestorModuleIds + moduleId
258
- )?.let { dependencies += it }
+ )?.also { dependencies += it }
259
260
return@forEach
261
}
@@ -345,7 +345,7 @@ open class Yarn(
345
346
347
internal fun getRemotePackageDetails(packageName: String): PackageJson? {
348
- yarnInfoCache.read(packageName)?.let { return parsePackageJson(it) }
+ yarnInfoCache.read(packageName)?.also { return parsePackageJson(it) }
349
350
val process = YarnCommand.run("info", "--json", packageName).requireSuccess()
351
0 commit comments