File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 55/* jshint node:true */
66/* global cli */
77/* exported CSSLint */
8+ "use strict" ;
89
910var fs = require ( "fs" ) ,
1011 path = require ( "path" ) ,
@@ -14,17 +15,14 @@ cli({
1415 args : process . argv . slice ( 2 ) ,
1516
1617 print : function ( message ) {
17- "use strict" ;
1818 fs . writeSync ( 1 , message + "\n" ) ;
1919 } ,
2020
2121 quit : function ( code ) {
22- "use strict" ;
2322 process . exit ( code || 0 ) ;
2423 } ,
2524
2625 isDirectory : function ( name ) {
27- "use strict" ;
2826 try {
2927 return fs . statSync ( name ) . isDirectory ( ) ;
3028 } catch ( ex ) {
3331 } ,
3432
3533 getFiles : function ( dir ) {
36- "use strict" ;
3734 var files = [ ] ;
3835
3936 try {
@@ -65,22 +62,18 @@ cli({
6562 } ,
6663
6764 getWorkingDirectory : function ( ) {
68- "use strict" ;
6965 return process . cwd ( ) ;
7066 } ,
7167
7268 getFullPath : function ( filename ) {
73- "use strict" ;
7469 return path . resolve ( process . cwd ( ) , filename ) ;
7570 } ,
7671
7772 readFile : function ( filename ) {
78- "use strict" ;
7973 try {
8074 return fs . readFileSync ( filename , "utf-8" ) ;
8175 } catch ( ex ) {
8276 return "" ;
8377 }
8478 }
8579} ) ;
86-
You can’t perform that action at this time.
0 commit comments