Skip to content

Commit

Permalink
eslint no-trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Feb 26, 2016
1 parent 545cfcb commit 503b427
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"rules": {
"indent": [ 2, 2, {"SwitchCase": 1} ],
"no-trailing-spaces": 2,
"quotes": [ 2, "single", "avoid-escape" ],
"linebreak-style": [ 2, "unix" ],
"semi": [ 2, "always" ],
Expand Down
2 changes: 1 addition & 1 deletion lib/compile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function compile(schema, root, localRefs, baseId) {
/* eslint no-shadow: 0 */
var self = this
, opts = this._opts
, refVal = [ undefined ]
, refVal = [ undefined ]
, refs = {}
, patterns = []
, patternsHash = {}
Expand Down
4 changes: 2 additions & 2 deletions lib/compile/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function resolve(compile, root, ref) {
if (this._refs[refVal]) refVal = this._refs[refVal];
else return resolve.call(this, compile, root, refVal);
}

refVal = refVal || this._schemas[ref];
if (refVal instanceof SchemaObject) {
return inlineRef(refVal.schema, this._opts.inlineRefs)
Expand Down Expand Up @@ -138,7 +138,7 @@ var SIMPLE_INLINED = util.toHash([
'maxItems', 'minItems',
'maximum', 'minimum',
'uniqueItems', 'multipleOf',
'required', 'enum'
'required', 'enum'
]);
function inlineRef(schema, limit) {
if (limit === false) return false;
Expand Down

0 comments on commit 503b427

Please sign in to comment.