Skip to content

Commit 76ed968

Browse files
committed
appease the linter
1 parent fb00676 commit 76ed968

File tree

3 files changed

+16
-23
lines changed

3 files changed

+16
-23
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"mocha"
1919
],
2020
"env": {
21-
"node": true
21+
"node": true,
22+
"es6": true
2223
}
2324
}

lib/virtual-stats.js

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ var constants = require('constants');
2020
* @constructor
2121
*/
2222
function VirtualStats(config) {
23-
for (var key in config) {
24-
if (!config.hasOwnProperty(key)) {
25-
continue;
26-
}
27-
this[key] = config[key];
28-
}
23+
for (var key in config) {
24+
if (!config.hasOwnProperty(key)) {
25+
continue;
26+
}
27+
this[key] = config[key];
28+
}
2929
}
3030

3131
/**
@@ -34,63 +34,56 @@ function VirtualStats(config) {
3434
* @return {boolean} Property matches mode.
3535
*/
3636
VirtualStats.prototype._checkModeProperty = function(property) {
37-
return ((this.mode & constants.S_IFMT) === property);
37+
return (this.mode & constants.S_IFMT) === property;
3838
};
3939

40-
4140
/**
4241
* @return {Boolean} Is a directory.
4342
*/
4443
VirtualStats.prototype.isDirectory = function() {
45-
return this._checkModeProperty(constants.S_IFDIR);
44+
return this._checkModeProperty(constants.S_IFDIR);
4645
};
4746

48-
4947
/**
5048
* @return {Boolean} Is a regular file.
5149
*/
5250
VirtualStats.prototype.isFile = function() {
53-
return this._checkModeProperty(constants.S_IFREG);
51+
return this._checkModeProperty(constants.S_IFREG);
5452
};
5553

56-
5754
/**
5855
* @return {Boolean} Is a block device.
5956
*/
6057
VirtualStats.prototype.isBlockDevice = function() {
61-
return this._checkModeProperty(constants.S_IFBLK);
58+
return this._checkModeProperty(constants.S_IFBLK);
6259
};
6360

64-
6561
/**
6662
* @return {Boolean} Is a character device.
6763
*/
6864
VirtualStats.prototype.isCharacterDevice = function() {
69-
return this._checkModeProperty(constants.S_IFCHR);
65+
return this._checkModeProperty(constants.S_IFCHR);
7066
};
7167

72-
7368
/**
7469
* @return {Boolean} Is a symbolic link.
7570
*/
7671
VirtualStats.prototype.isSymbolicLink = function() {
77-
return this._checkModeProperty(constants.S_IFLNK);
72+
return this._checkModeProperty(constants.S_IFLNK);
7873
};
7974

80-
8175
/**
8276
* @return {Boolean} Is a named pipe.
8377
*/
8478
VirtualStats.prototype.isFIFO = function() {
85-
return this._checkModeProperty(constants.S_IFIFO);
79+
return this._checkModeProperty(constants.S_IFIFO);
8680
};
8781

88-
8982
/**
9083
* @return {Boolean} Is a socket.
9184
*/
9285
VirtualStats.prototype.isSocket = function() {
93-
return this._checkModeProperty(constants.S_IFSOCK);
86+
return this._checkModeProperty(constants.S_IFSOCK);
9487
};
9588

9689
module.exports = VirtualStats;

lib/virtual.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var VirtualStats = require('./virtual-stats');
2-
var path = require('path');
32

43
var inode = 45000000;
54

0 commit comments

Comments
 (0)