From bbd79c9e1a9508da05786f59229a222fb50ebd8e Mon Sep 17 00:00:00 2001 From: Keith Abdulla Date: Sat, 23 Aug 2014 23:31:33 -0700 Subject: [PATCH] fixed style nits --- lib/schema.js | 4 +--- test/properties.js | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/schema.js b/lib/schema.js index 856045a..4c02e49 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -33,7 +33,6 @@ var checkArray = function(schema, key, errors, values) { }; /*jshint loopfunc:true*/ - Schema.prototype.validate = function(data) { var params = _.keys(this.schema); var errors = {}; @@ -70,8 +69,7 @@ Schema.prototype.validate = function(data) { } } } - } - else if (!_.isUndefined(value)) { + } else if (!_.isUndefined(value)) { values[params[i]] = value; } diff --git a/test/properties.js b/test/properties.js index 988ced5..964dbed 100644 --- a/test/properties.js +++ b/test/properties.js @@ -3,7 +3,6 @@ describe("filter schemas", function() /*jshint expr:true*/ var schemajs = (typeof window === 'undefined') ? require('../schema') : window.schema; var expect = (typeof window === 'undefined') ? require('chai').expect : window.chai.expect; - it("minimum string length property", function() { var schema = schemajs.create(