Skip to content

Commit

Permalink
fix(helper): assign result to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebachelier committed Mar 7, 2016
1 parent 5498adf commit 5f67e3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/helpers/req.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ class Request {
}

response () {
log('sending response ', this._items.response || response(this) || null)
return this._items.response || response(this) || null
const data = this._items.response || response(this) || null

log('sending response ', data)
return data
}

callback (err, res) {
Expand Down

0 comments on commit 5f67e3b

Please sign in to comment.