Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fund.js')
-rw-r--r--lib/fund.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/fund.js b/lib/fund.js
index 660e22468..fdd1bd07a 100644
--- a/lib/fund.js
+++ b/lib/fund.js
@@ -80,8 +80,7 @@ function printHuman (fundingInfo, { unicode }) {
// puts child nodes back into returned archy
// output while also filtering out missing items
leave: (item, children) => {
- if (item)
- item.nodes = children.filter(Boolean)
+ if (item) { item.nodes = children.filter(Boolean) }
return item
},
@@ -102,7 +101,6 @@ function printHuman (fundingInfo, { unicode }) {
async function openFundingUrl ({ path, tree, spec, fundingSourceNumber }) {
const arg = npa(spec, path)
const retrievePackageMetadata = () => {
-
if (arg.type === 'directory') {
if (tree.path === arg.fetchSpec) {
// matches cwd, e.g: npm fund .
@@ -118,7 +116,7 @@ async function openFundingUrl ({ path, tree, spec, fundingSourceNumber }) {
} else {
// tries to retrieve a package from arborist inventory
// by matching resulted package name from the provided spec
- const [ item ] = [...tree.inventory.query('name', arg.name)]
+ const [item] = [...tree.inventory.query('name', arg.name)]
.filter(i => semver.valid(i.package.version))
.sort((a, b) => semver.rcompare(a.package.version, b.package.version))