不要怂,就是干,撸起袖子干!

Commit 7168a62e by Fräntz Miccoli

Fixing a linting problem by disabling the rule (we do actually want that specific construct)

1 parent 24fcc7a3
......@@ -83,7 +83,7 @@ STRING.prototype.toSql = function() {
return 'VARCHAR(' + this._length + ')' + ((this._binary) ? ' BINARY' : '');
};
STRING.prototype.validate = function(value) {
if (Object.prototype.toString.call(myvar) != '[object String]') {
if (Object.prototype.toString.call(value) !== '[object String]') {
if (this.options.binary) {
if (Buffer.isBuffer(value)) {
return true;
......
......@@ -63,7 +63,9 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
var type = DataTypes.STRING();
expect(type.validate('foobar')).to.equal(true);
/*jshint -W053 */
expect(type.validate(new String('foobar'))).to.equal(true);
/*jshint +W053 */
});
});
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!