Skip to content

Commit 04b248e

Browse files
committed
Update gitignore, fix linting
1 parent 2153bef commit 04b248e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ profile-*
4545

4646
# VS Code
4747
.vscode/
48+
49+
# lock files
50+
yarn.lock
51+
package-lock.json

plugin.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const close = function (fastify, done) {
1616
}
1717
}
1818

19-
function decorateFastifyInstance(pool, fastify, options, next) {
19+
function decorateFastifyInstance (pool, fastify, options, next) {
2020
const oracle = {
2121
getConnection: pool.getConnection.bind(pool),
2222
pool
23-
};
23+
}
2424

2525
if (options.name) {
2626
if (!fastify.oracle) {
@@ -35,8 +35,7 @@ function decorateFastifyInstance(pool, fastify, options, next) {
3535
} else {
3636
if (fastify.oracle) {
3737
return next(new Error('fastify-oracle has already been registered'))
38-
}
39-
else {
38+
} else {
4039
fastify.decorate('oracle', Object.assign(oracle, { db: oracledb }))
4140
}
4241
}
@@ -46,7 +45,7 @@ function decorateFastifyInstance(pool, fastify, options, next) {
4645
return next()
4746
}
4847

49-
function fastifyOracleDB(fastify, options, next) {
48+
function fastifyOracleDB (fastify, options, next) {
5049
if (options.client) {
5150
if (oracledb.Pool.prototype.isPrototypeOf(options.client) === false) {
5251
return next(Error('supplied client must be an instance of oracledb.pool'))

0 commit comments

Comments
 (0)