Skip to content

Commit 8a51136

Browse files
committed
lintin
1 parent 9fcc87e commit 8a51136

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hookslib/CloutApiRoute.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright(c) 2018 Muhammad Dadu
44
* MIT Licensed
55
*/
6-
const debug = require('debug')('clout-js:api')
6+
const debug = require('debug')('clout-js:api');
77
const { safePromisifyCallFn } = require('../lib/utils');
88
const types = require('./apiType');
99

@@ -71,8 +71,8 @@ class CloutApiRoute {
7171
safePromisifyCallFn(fn, this, [req, resp, null, ...args])
7272
.then((data) => {
7373
const headerSent = !!resp._header;
74-
debug(req.url, 'isPublicFacing', isPublicFacing)
75-
debug(req.url, 'headerSent', headerSent)
74+
debug(req.url, 'isPublicFacing', isPublicFacing);
75+
debug(req.url, 'headerSent', headerSent);
7676
debug('data', data);
7777
if (isPublicFacing) {
7878
if (!headerSent) {

hookslib/apiType/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ module.exports = {
1919

2020
// attach hooks
2121
this.hooks
22-
.filter(hookFn => {
22+
.filter((hookFn) => {
2323
const isFunction = typeof hookFn === 'function';
2424
if (!isFunction) {
25-
console.error({apiPath, isFunction}, 'hook is not a function');;
25+
console.error({apiPath, isFunction}, 'hook is not a function');
2626
}
2727

2828
return isFunction;
2929
})
30-
.map(hookFn => {
30+
.map((hookFn) => {
3131
debug({method, hookFn}, 'attaching hookFn for method');
3232
return attachHook(method, hookFn);
3333
});

0 commit comments

Comments
 (0)