Skip to content

Commit

Permalink
Merge pull request #1079 from JKRhb/netconf-null-check
Browse files Browse the repository at this point in the history
fix(binding-netconf): use optional chaining for non-null-assertion
  • Loading branch information
JKRhb authored Sep 13, 2023
2 parents 2b5be1f + 7047b9b commit c10fba2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/binding-netconf/src/async-node-netconf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ export class Client {
reject(err);
} else {
debug(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
`New NetConf router opened connection with host ${this.routerParams!.host}, port ${
this.routerParams!.port
}, username ${this.routerParams!.username}`
`New NetConf router opened connection with host ${this.routerParams?.host}, port ${this.routerParams?.port}, username ${this.routerParams?.username}`
);
this.connected = true;
resolve(undefined);
Expand Down

0 comments on commit c10fba2

Please sign in to comment.