Skip to content

Commit b70981e

Browse files
committed
fixed eslint error
1 parent e0d37da commit b70981e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/kuzzleDocument.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,15 @@ KuzzleDocument.prototype.refresh = function (options, cb) {
237237
KuzzleDocument.prototype.save = function (options, cb) {
238238
var
239239
data = this.toJSON(),
240-
self = this;
240+
self = this,
241+
queryCB;
241242

242243
if (options && cb === undefined && typeof options === 'function') {
243244
cb = options;
244245
options = null;
245246
}
246247

247-
var queryCB = function (error, result) {
248+
queryCB = function (error, result) {
248249
if (error) {
249250
return cb ? cb(error) : false;
250251
}

0 commit comments

Comments
 (0)