@@ -8,7 +8,6 @@ const fs = require('fs')
88const fileSet = require ( 'file-set' )
99const Transform = require ( 'stream' ) . Transform
1010const cliOptions = require ( './cli-options' )
11- const os = require ( 'os' )
1211const getTempPath = require ( 'temp-path' )
1312
1413function tempPath ( ) {
@@ -136,7 +135,7 @@ function jsdocParse (options) {
136135 self . push ( data )
137136 self . push ( null )
138137 done ( )
139- } catch ( err ) {
138+ } catch ( err ) {
140139 done ( err )
141140 }
142141 }
@@ -197,7 +196,7 @@ function getJsdocOutput (src, options, done) {
197196 var outputFile = fs . openSync ( outputFilePath , 'w' )
198197 var outputStderrPath = tempPath ( )
199198 var outputStderr = fs . openSync ( outputStderrPath , 'w' )
200- var handle = cp . spawn ( 'node' , args , { stdio : [ process . stdin , outputFile , outputStderr ] } )
199+ var handle = cp . spawn ( 'node' , args , { stdio : [ process . stdin , outputFile , outputStderr ] } )
201200 handle . on ( 'error' , done )
202201 handle . on ( 'close' , function ( code ) {
203202 const stderr = fs . readFileSync ( outputStderrPath , 'utf8' )
@@ -216,8 +215,6 @@ function getJsdocOutput (src, options, done) {
216215 } )
217216}
218217
219-
220-
221218/**
222219 * @param {string } - input json string
223220 * @param {object } - jsdoc-parse options
@@ -261,7 +258,6 @@ function getStats (data) {
261258 kinds . forEach ( function ( kind ) {
262259 stats . identifiers [ kind ] = a ( data ) . where ( { kind : kind } ) . pluck ( 'longname' ) . val ( )
263260 } )
264- console . log ( stats ) ;
265261 return stats
266262}
267263
0 commit comments