Skip to content

Commit 1d19dd2

Browse files
committed
fixes linting
1 parent 0379ba5 commit 1d19dd2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/can-model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ ns.Model = Map.extend({
514514
var d;
515515
if( is_jQueryPromise(def) ) {
516516

517-
var d = new jQuery.Deferred();
517+
d = new jQuery.Deferred();
518518
def.then(function () {
519519
var args = Array.from(arguments),
520520
success = true;

src/model_test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,12 @@ if (window.jQuery) {
127127
},{});
128128

129129
Person.findOne({}, function callback(instance, status, xhr){
130-
var args = arguments;
131130
QUnit.ok(instance, "instance");
132131
QUnit.ok(status, "status");
133132
QUnit.ok(xhr, "xhr");
134133
can.Model.ajax = prev;
135134
QUnit.start();
136-
})
135+
});
137136
});
138137
/*
139138
asyncTest('findAll abort', function () {
@@ -1326,7 +1325,7 @@ test(".parseModel as string on create and update (#560)", function () {
13261325
test("can create a model with a string", function(){
13271326
var foo = new Model("abc");
13281327
QUnit.ok(foo, "got abc");
1329-
})
1328+
});
13301329

13311330
test("parseModels and findAll", function () {
13321331

0 commit comments

Comments
 (0)