Skip to content

Commit

Permalink
Read the Node's value instead of the Node itself
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Oct 8, 2019
1 parent 5c018ac commit 84ad4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default class UpdateManager {
var status = kb.each(response, this.ns.http('status'))
if (status.length) {
for (let i = 0; i < status.length; i++) {
if (status[i] === 200 || status[i] === 404) {
if (status[i].value === '200' || status[i].value === '404') {
definitive = true
// return false // A definitive answer
}
Expand Down

0 comments on commit 84ad4ee

Please sign in to comment.