@@ -203,9 +203,8 @@ module.exports = function (browserify, options) {
203203
204204 function addHooks ( ) {
205205 browserify . pipeline . get ( 'pack' ) . push ( through ( function write ( row , enc , next ) {
206- next ( null , row )
206+ next ( null , row ) ;
207207 } , function end ( cb ) {
208-
209208 // on each bundle, create a new stream b/c the old one might have ended
210209 var compiledCssStream = new ReadableStream ( ) ;
211210 compiledCssStream . _read = function ( ) { } ;
@@ -221,7 +220,7 @@ module.exports = function (browserify, options) {
221220 compiledCssStream . push ( css ) ;
222221 compiledCssStream . push ( null ) ;
223222
224- const writes = [ ] ;
223+ var writes = [ ] ;
225224
226225 // write the css file
227226 if ( cssOutFilename ) {
@@ -234,7 +233,7 @@ module.exports = function (browserify, options) {
234233 }
235234 Promise . all ( writes )
236235 . then ( function ( ) { cb ( ) ; } )
237- . catch ( function ( err ) { self . emit ( 'error' , err ) ; cb ( ) } )
236+ . catch ( function ( err ) { self . emit ( 'error' , err ) ; cb ( ) ; } ) ;
238237 } ) ) ;
239238 }
240239
@@ -244,13 +243,11 @@ module.exports = function (browserify, options) {
244243 return browserify ;
245244} ;
246245
247- function writeFile ( filename , content ) {
246+ function writeFile ( filename , content ) {
248247 return new Promise ( function ( resolve , reject ) {
249248 fs . writeFile ( filename , content , function ( err ) {
250- if ( err )
251- reject ( err ) ;
252- else
253- resolve ( ) ;
249+ if ( err ) reject ( err ) ;
250+ else resolve ( ) ;
254251 } ) ;
255252 } ) ;
256253}
0 commit comments