Skip to content

Commit 786e9ee

Browse files
committed
prettier
1 parent 58a4823 commit 786e9ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class API {
4242
: {};
4343
this._compression =
4444
props &&
45-
(typeof props.compression === 'boolean' ||
46-
Array.isArray(props.compression))
45+
(typeof props.compression === 'boolean' ||
46+
Array.isArray(props.compression))
4747
? props.compression
4848
: false;
4949

@@ -84,7 +84,7 @@ class API {
8484
this._app = {};
8585

8686
// Executed after the callback
87-
this._finally = () => { };
87+
this._finally = () => {};
8888

8989
// Global error status (used for response parsing errors)
9090
this._errorStatus = 500;
@@ -213,8 +213,8 @@ class API {
213213
stack: _stack['m'][method]
214214
? _stack['m'][method].concat(stack)
215215
: _stack['*'][method]
216-
? _stack['*'][method].concat(stack)
217-
: stack,
216+
? _stack['*'][method].concat(stack)
217+
: stack,
218218
// inherited: _stack[method] ? _stack[method] : [],
219219
route: '/' + parsedPath.join('/'),
220220
path: '/' + this._prefix.concat(parsedPath).join('/'),
@@ -453,8 +453,8 @@ class API {
453453
typeof args[0] === 'string'
454454
? Array.of(args.shift())
455455
: Array.isArray(args[0])
456-
? args.shift()
457-
: ['/*'];
456+
? args.shift()
457+
: ['/*'];
458458

459459
// Init middleware stack
460460
let middleware = [];

0 commit comments

Comments
 (0)