Skip to content

Commit 383de12

Browse files
committed
add casting
1 parent 7f664e9 commit 383de12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for (const ip of config.ips) {
3838
console.log(error)
3939
} else {
4040
for (const varbind of varbinds) {
41-
if (snmp.isVarbindError(varbind)) {
41+
if (snmp.isVarbindError(varbind) as boolean) {
4242
console.error(snmp.varbindError(varbind))
4343
} else {
4444
const value = varbind.value

0 commit comments

Comments
 (0)