Skip to content

Commit

Permalink
lint dist-indexer.js and fix missing modVersion var
Browse files Browse the repository at this point in the history
Fixes: #94
  • Loading branch information
rvagg committed May 6, 2015
1 parent a209398 commit 2bb2d8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/dist/dist-indexer/dist-indexer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

'use strict';

const fs = require('fs')
, path = require('path')
, argv = require('minimist')(process.argv.slice(2))
Expand Down Expand Up @@ -68,7 +70,7 @@ function commitFromDir (dir) {


function fetch (url, commit, callback) {
url = url.replace("{commit}", commit)
url = url.replace('{commit}', commit)
hyperquest.get(url).pipe(bl(function (err, data) {
if (err)
return callback(err)
Expand Down Expand Up @@ -244,11 +246,11 @@ function dirFiles (dir, callback) {
if (err)
return callback(err)

files = contents.split('\n').map(function (line) {
var files = contents.split('\n').map(function (line) {
var seg = line.split(/\s+/)
return seg.length >= 2 && seg[1]
})
.map(transformFilenames)
.map(transformFilename)
.filter(Boolean)
.sort()

Expand All @@ -265,6 +267,7 @@ function inspectDir (dir, callback) {
, uvVersion
, sslVersion
, zlibVersion
, modVersion
, date

if (!commit) {
Expand Down

0 comments on commit 2bb2d8a

Please sign in to comment.