Merge pull request #99 from zmhassan/issue94

Fixed linting issues found with Grunt
This commit is contained in:
Alan K 2014-01-21 10:05:17 -08:00
commit 2e11be3c12
1 changed files with 9 additions and 9 deletions

View File

@ -1165,7 +1165,7 @@ define(function(require) {
else if (!name) { else if (!name) {
callback(new EInvalid('attribute name cannot be an empty string')); callback(new EInvalid('attribute name cannot be an empty string'));
} }
else if (flag != null && else if (flag !== null &&
flag !== XATTR_CREATE && flag !== XATTR_REPLACE) { flag !== XATTR_CREATE && flag !== XATTR_REPLACE) {
callback(new EInvalid('invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE')); callback(new EInvalid('invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE'));
} }
@ -1182,7 +1182,7 @@ define(function(require) {
else if (!name) { else if (!name) {
callback(new EInvalid('attribute name cannot be an empty string')); callback(new EInvalid('attribute name cannot be an empty string'));
} }
else if (flag != null && else if (flag !== null &&
flag !== XATTR_CREATE && flag !== XATTR_REPLACE) { flag !== XATTR_CREATE && flag !== XATTR_REPLACE) {
callback(new EInvalid('invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE')); callback(new EInvalid('invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE'));
} }
@ -1760,7 +1760,7 @@ define(function(require) {
else { else {
callback(null); callback(null);
} }
}; }
setxattr_file(context, path, name, value, flag, check_result); setxattr_file(context, path, name, value, flag, check_result);
} }
@ -1905,7 +1905,7 @@ define(function(require) {
callback(null); callback(null);
} }
} }
utimes_file(context, path, atime, mtime, check_result) utimes_file(context, path, atime, mtime, check_result);
} }
function _futimes(fs, context, fd, atime, mtime, callback) { function _futimes(fs, context, fd, atime, mtime, callback) {
@ -1918,7 +1918,7 @@ define(function(require) {
} }
} }
var currentTime = Date.now() var currentTime = Date.now();
atime = (atime) ? atime : currentTime; atime = (atime) ? atime : currentTime;
mtime = (mtime) ? mtime : currentTime; mtime = (mtime) ? mtime : currentTime;
@ -2297,7 +2297,7 @@ define(function(require) {
} }
}; };
FileSystem.prototype.setxattr = function (path, name, value, flag, callback) { FileSystem.prototype.setxattr = function (path, name, value, flag, callback) {
var callback = maybeCallback(arguments[arguments.length - 1]); callback = maybeCallback(arguments[arguments.length - 1]);
var _flag = (typeof flag != 'function') ? flag : null; var _flag = (typeof flag != 'function') ? flag : null;
var fs = this; var fs = this;
var error = fs.queueOrRun( var error = fs.queueOrRun(
@ -2326,7 +2326,7 @@ define(function(require) {
} }
}; };
FileSystem.prototype.fsetxattr = function (fd, name, value, flag, callback) { FileSystem.prototype.fsetxattr = function (fd, name, value, flag, callback) {
var callback = maybeCallback(arguments[arguments.length - 1]); callback = maybeCallback(arguments[arguments.length - 1]);
var _flag = (typeof flag != 'function') ? flag : null; var _flag = (typeof flag != 'function') ? flag : null;
var fs = this; var fs = this;
var error = fs.queueOrRun( var error = fs.queueOrRun(