Skip to content

Commit cda3b4b

Browse files
author
Michael Ledin
committed
eslint fixes
1 parent 286cb86 commit cda3b4b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Diff for: cmify.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@ var path = require("path");
33
var util = require("util");
44

55
util.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

1919
Cmify.prototype.isCssFile = function (filename) {
20-
return this.cssFilePattern.test(filename)
21-
}
20+
return this.cssFilePattern.test(filename);
21+
};
2222

2323
Cmify.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;

Diff for: tests/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ var cssOutFilename = 'out.css';
1111
function 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 = {

0 commit comments

Comments
 (0)