Skip to content

Commit

Permalink
Merge pull request #23 from hawkeye64/master
Browse files Browse the repository at this point in the history
Fixing for loop. Adding node_modules to .gitignore.
  • Loading branch information
futomi committed Mar 25, 2018
2 parents 3dbaf5d + ed3754f commit 5cb9947
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 5cb9947

Please sign in to comment.