Skip to content

Commit

Permalink
Because eslint 💩 sucks balls
Browse files Browse the repository at this point in the history
  • Loading branch information
17320 committed Oct 5, 2018
1 parent e407d92 commit c63f521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/middlewares/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module.exports = function(app) {
var proxyPath = args.P || args.proxyPath || config.server.proxyPath || process.env.proxy_path;
var proxyUrl = args.U || args.proxyUrl || config.server.proxyUrl || process.env.proxy_url;

if(!proxyPath || !proxyUrl) return;
if (!proxyPath || !proxyUrl) return;

// In case of multiple proxy-url options, ignore all but last.
if(Array.isArray(proxyUrl)) {
if (Array.isArray(proxyUrl)) {
proxyUrl = proxyUrl[proxyUrl.length - 1];
}

Expand Down

0 comments on commit c63f521

Please sign in to comment.