Skip to content

Commit d81b40a

Browse files
committed
Lint files
1 parent 75659ef commit d81b40a

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

lib/connection.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function getDbObjectClass(name, cb) {
223223
}
224224

225225
// This getStatementInfo function is just a place holder to allow for easier extension later.
226-
function getStatementInfo(sql, getStatementInfoCb) {
226+
function getStatementInfo(sql, getStatementInfoCb) { //eslint-disable-line
227227
const self = this;
228228

229229
nodbUtil.checkAsyncArgs(arguments, 2, 2);
@@ -232,15 +232,15 @@ function getStatementInfo(sql, getStatementInfoCb) {
232232
}
233233

234234
// This commit function is just a place holder to allow for easier extension later.
235-
function commit(commitCb) {
235+
function commit(commitCb) { //eslint-disable-line
236236
const self = this;
237237

238238
nodbUtil.checkAsyncArgs(arguments, 1, 1);
239239
self._commit.apply(self, arguments);
240240
}
241241

242242
// This createLob function is just a place holder to allow for easier extension later.
243-
function createLob(type, createLobCb) {
243+
function createLob(type, createLobCb) { //eslint-disable-line
244244
const self = this;
245245

246246
nodbUtil.checkAsyncArgs(arguments, 2, 2);
@@ -249,7 +249,7 @@ function createLob(type, createLobCb) {
249249
}
250250

251251
// This rollback function is just a place holder to allow for easier extension later.
252-
function rollback(rollbackCb) {
252+
function rollback(rollbackCb) { //eslint-disable-line
253253
const self = this;
254254

255255
nodbUtil.checkAsyncArgs(arguments, 1, 1);
@@ -292,7 +292,7 @@ function close(a1, a2) {
292292

293293
// This break function is just a place holder to allow for easier extension later.
294294
// It's attached to the module as break is a reserved word.
295-
module.break = function(breakCb) {
295+
module.break = function(breakCb) { //eslint-disable-line
296296
const self = this;
297297

298298
nodbUtil.checkAsyncArgs(arguments, 1, 1);
@@ -334,7 +334,7 @@ function getQueue(name, a2, a3) {
334334
}
335335

336336
// This ping function is just a place holder to allow for easier extension later.
337-
function ping(pingCb) {
337+
function ping(pingCb) { //eslint-disable-line
338338
const self = this;
339339

340340
nodbUtil.checkAsyncArgs(arguments, 1, 1);
@@ -374,9 +374,9 @@ function buildDbObjectClass(schema, name, fqn) {
374374
}
375375
return proxy;
376376
} else if (initialValue !== undefined) {
377-
Object.assign(this, initialValue)
377+
Object.assign(this, initialValue);
378378
}
379-
}
379+
};
380380
DbObject.prototype = Object.create(BaseDbObject.prototype);
381381
DbObject.prototype.constructor = DbObject;
382382
DbObject.prototype.schema = schema;

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ module.exports.assert = assert;
154154
// arguments is not within the given range, an error is thrown.
155155
function checkArgCount(args, minArgCount, maxArgCount) {
156156
if (args.length < minArgCount || args.length > maxArgCount)
157-
throw new Error(getErrorMessage('NJS-009'));
157+
throw new Error(getErrorMessage('NJS-009'));
158158
}
159159

160160
module.exports.checkArgCount = checkArgCount;

test/accessPropertiesOnClosedObjects.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ describe('223. accessPropertiesOnClosedObjects.js', () => {
5454

5555
await Lob.close();
5656
should.strictEqual(Lob.type, oracledb.DB_TYPE_BLOB);
57-
should.strictEqual(Lob.length, 0)
57+
should.strictEqual(Lob.length, 0);
5858

5959
await conn.close();
6060
should.strictEqual(Lob.type, oracledb.DB_TYPE_BLOB);
61-
should.strictEqual(Lob.length, 0)
61+
should.strictEqual(Lob.length, 0);
6262
} catch (err) {
6363
should.not.exist(err);
6464
}
6565
}); // 223.2
66-
});
66+
});

test/connProps.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
const oracledb = require('oracledb');
2929
const should = require('should');
3030
const dbconfig = require('./dbconfig.js');
31-
const testsUtil = require('./testsUtil.js');
3231

3332
describe('193. connProps.js', function() {
3433

@@ -81,7 +80,7 @@ describe('193. connProps.js', function() {
8180
should.strictEqual(conn.clientInfo, null);
8281
should.strictEqual(conn.dbOp, null);
8382
await conn.close();
84-
} catch (error) {
83+
} catch (err) {
8584
should.not.exist(err);
8685
}
8786
}); // 193.2

test/runCQN.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe('185. runCQN.js', function() {
209209
should.strictEqual(table.name, tableName);
210210
let expect = oracledb.CQN_OPCODE_INSERT | oracledb.CQN_OPCODE_ALL_ROWS;
211211
should.strictEqual(table.operation, expect);
212-
}
212+
};
213213

214214
const options = {
215215
callback : myCallback,
@@ -454,4 +454,4 @@ describe('185. runCQN.js', function() {
454454
}
455455
}); // 185.9
456456

457-
});
457+
});

0 commit comments

Comments
 (0)