Skip to content

Commit

Permalink
Fix for for loop. Updating .gitignore with node_modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye64 committed Feb 13, 2018
1 parent caf5d11 commit ed3754f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ Network Trash Folder
Temporary Items
.apdisk

test
test
node_modules
2 changes: 1 addition & 1 deletion lib/modules/service-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ OnvifServiceDevice.prototype.setDNS = function(params, callback) {
reject(new Error('The "SearchDomain" property was invalid: ' + err_msg));
return;
}
for(let i=0; i<params['SearchDomain']; i++) {
for(let i=0; i<params['SearchDomain'].length; i++) {
if(err_msg = mOnvifSoap.isInvalidValue(params['SearchDomain'][i], 'string')) {
reject(new Error('The "SearchDomain" property was invalid: ' + err_msg));
return;
Expand Down

0 comments on commit ed3754f

Please sign in to comment.