Skip to content

Commit 737d09c

Browse files
committed
fix linting errors
1 parent a0469c8 commit 737d09c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
'use strict'
22

33
/**
44
* Lightweight web framework for your serverless applications
@@ -31,7 +31,7 @@ class API {
3131
this._routes = {}
3232

3333
// Default callback
34-
this._cb = function(err,res) { console.log('No callback specified') }
34+
this._cb = function() { console.log('No callback specified') }
3535

3636
// Middleware stack
3737
this._middleware = []
@@ -106,7 +106,7 @@ class API {
106106
handler: handler,
107107
route: '/'+parsedPath.join('/'),
108108
path: '/'+this._prefix.concat(parsedPath).join('/') }
109-
} : {}),
109+
} : {}),
110110
route.slice(0,i+1)
111111
)
112112
}
@@ -170,7 +170,7 @@ class API {
170170
// Strip the headers (TODO: find a better way to handle this)
171171
response._headers = {}
172172

173-
let message;
173+
let message
174174

175175
if (e instanceof Error) {
176176
response.status(this._errorStatus)
@@ -250,8 +250,8 @@ class API {
250250

251251
// Recursive function to create routes object
252252
setRoute(obj, value, path) {
253-
if (typeof path === "string") {
254-
let path = path.split('.')
253+
if (typeof path === 'string') {
254+
let path = path.split('.')
255255
}
256256

257257
if (path.length > 1){

0 commit comments

Comments
 (0)