Skip to content

Commit

Permalink
add casting
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Apr 30, 2024
1 parent 7f664e9 commit 383de12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ for (const ip of config.ips) {
console.log(error)
} else {
for (const varbind of varbinds) {
if (snmp.isVarbindError(varbind)) {
if (snmp.isVarbindError(varbind) as boolean) {
console.error(snmp.varbindError(varbind))
} else {
const value = varbind.value
Expand Down

0 comments on commit 383de12

Please sign in to comment.