File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -3,32 +3,32 @@ var path = require("path");
33var util = require ( "util" ) ;
44
55util . inherits ( Cmify , stream . Transform ) ;
6- function Cmify ( filename , opts ) {
6+ function Cmify ( filename , opts ) {
77 if ( ! ( this instanceof Cmify ) ) {
88 return new Cmify ( filename , opts ) ;
99 }
1010
1111 stream . Transform . call ( this ) ;
1212
1313 this . cssFilePattern = new RegExp ( opts . cssFilePattern || '\.css$' ) ;
14- this . _data = "" ;
14+ this . _data = '' ;
1515 this . _filename = filename ;
1616 this . _cssOutFilename = opts . cssOutFilename ;
1717}
1818
1919Cmify . prototype . isCssFile = function ( filename ) {
20- return this . cssFilePattern . test ( filename )
21- }
20+ return this . cssFilePattern . test ( filename ) ;
21+ } ;
2222
2323Cmify . prototype . _transform = function ( buf , enc , callback ) {
2424 // only handle .css files
2525 if ( ! this . isCssFile ( this . _filename ) ) {
26- this . push ( buf )
27- return callback ( )
26+ this . push ( buf ) ;
27+ return callback ( ) ;
2828 }
2929
30- this . _data += buf
31- callback ( )
30+ this . _data += buf ;
31+ callback ( ) ;
3232} ;
3333
34- module . exports = Cmify
34+ module . exports = Cmify ;
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ var cssOutFilename = 'out.css';
1111function runTestCase ( dir ) {
1212 tape ( 'case: ' + dir , function ( t ) {
1313 // load (optional) custom setup for this testcase
14- var customPath = path . join ( casesDir , dir , 'custom.js' )
15- var customOpts
14+ var customPath = path . join ( casesDir , dir , 'custom.js' ) ;
15+ var customOpts ;
1616 try {
17- fs . accessSync ( customPath )
18- customOpts = require ( customPath )
17+ fs . accessSync ( customPath ) ;
18+ customOpts = require ( customPath ) ;
1919 } catch ( e ) {
20- customOpts = { }
20+ customOpts = { } ;
2121 }
2222
2323 var fakeFs = {
You can’t perform that action at this time.
0 commit comments