Skip to content

Commit

Permalink
fix error handling in setMonitoringMode
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Aug 28, 2023
1 parent ea41612 commit a33cb75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class ClientMonitoredItemImpl extends EventEmitter implements ClientMonit
[this],
monitoringMode,
(err?: Error | null, statusCodes?: StatusCode[]) => {
callback(err ? err : null, statusCodes![0]);
callback(err ? err : null, statusCodes ? statusCodes[0]: undefined);
}
);
}
Expand Down

0 comments on commit a33cb75

Please sign in to comment.