Skip to content

Commit

Permalink
repalce for-in with 'normal' for loop in mqtt and http
Browse files Browse the repository at this point in the history
  • Loading branch information
btsimonh committed Nov 18, 2019
1 parent b4e2061 commit 175a871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module.exports = function(RED) {
// check if proxy is set in env
var noproxy;
if (noprox) {
for (var i in noprox) {
for (var i = 0; i < noprox.length; i += 1) {
if (this.brokerurl.indexOf(noprox[i].trim()) !== -1) { noproxy=true; }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ module.exports = function(RED) {

var noproxy;
if (noprox) {
for (var i in noprox) {
for (var i = 0; i < noprox.length; i += 1) {
if (url.indexOf(noprox[i]) !== -1) { noproxy=true; }
}
}
Expand Down

0 comments on commit 175a871

Please sign in to comment.