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:
authorSebastiaan Deckers <seb@ninja.sg>2015-10-13 06:12:34 +0300
committerRebecca Turner <me@re-becca.org>2015-10-22 01:16:34 +0300
commit40c1b0f5cba5c4ecbcea8e9a7def9965682c2701 (patch)
treebdc117586e05a4f01ba0faed1adbea2eeb2248c4 /scripts
parent8946cb3f321995792a3009f6372a6f87e81873ed (diff)
src: Update formatting to be compatible with standard@5
PR-URL: https://github.com/npm/npm/pull/9954
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/index-build.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/index-build.js b/scripts/index-build.js
index 8fbbf8595..058bc7401 100755
--- a/scripts/index-build.js
+++ b/scripts/index-build.js
@@ -17,11 +17,11 @@ glob(root + '/{README.md,doc/*/*.md}', function (er, files) {
}).filter(function (f) {
return f
}).sort(function (a, b) {
- return (a[0] === b[0]) ?
- (path.basename(a[1]) === 'npm.md' ? -1 :
- path.basename(b[1]) === 'npm.md' ? 1 :
- a[1] > b[1] ? 1 : -1) :
- a[0] - b[0]
+ return (a[0] === b[0])
+ ? (path.basename(a[1]) === 'npm.md' ? -1
+ : path.basename(b[1]) === 'npm.md' ? 1
+ : a[1] > b[1] ? 1 : -1)
+ : a[0] - b[0]
}))
})