Skip to content

Commit

Permalink
style(lint): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebachelier committed Jan 12, 2016
1 parent 326d96a commit ed89b0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function cache (config = {}) {
.then((value) => {
read(req)(value)
.then(resolve)
.catch((err) => {
.catch(() => {
// cache miss
next()
.then((res) => {
Expand Down
3 changes: 2 additions & 1 deletion lib/read-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export default function (req) {
return function (value) {
return new Promise((resolve, reject) => {
if (!value) {
var error = new Error()
const error = new Error()

error.reason = 'cache-miss'
error.message = 'Value not found from cache'
reject(error)
Expand Down
2 changes: 1 addition & 1 deletion lib/serialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function serialize (req, res) {
responseType: res.responseType,
responseText: res.responseText,
status: res.status,
statusText: res.statusText,
statusText: res.statusText
}
}
}

0 comments on commit ed89b0b

Please sign in to comment.