Skip to content

Commit

Permalink
Fix to Server JS Lint failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Wentz committed Aug 3, 2017
1 parent e916054 commit f1ca974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,12 @@ app.get('/api-proxy/*', (req, res) => {
if (!apiKey) return res.status(401).end()

return http
.get(route, { params})
.get(route, { params })
.then(r => {
res.set(r.headers)
res.send(r.data)
})
.catch(e => {
console.log("Proxy API Error:",e);
res.status(e.response.status).end()
})
})
Expand Down

0 comments on commit f1ca974

Please sign in to comment.