Skip to content

Commit

Permalink
1 lining a statement
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jun 22, 2017
1 parent 1032376 commit 7b665ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ function rate (req, res, next) {
} else {
results = server.tenso.rate(req, config.override);
good = results.shift();

iterate(rateHeaders, (i, idx) => {
res.setHeader(i, results[idx]);
});
iterate(rateHeaders, (i, idx) => res.setHeader(i, results[idx]));

if (good) {
next();
Expand Down

0 comments on commit 7b665ac

Please sign in to comment.