Skip to content

Commit

Permalink
Assign null to variables to avoid use-before-assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Nov 9, 2023
1 parent cc721c4 commit ddacc2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/driver/src/baseConn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@ export class BaseRawConnection {

this._sendData(wb.unwrap());

let cardinality: number | void;
let inTypeId: uuid | void;
let outTypeId: uuid | void;
let cardinality: number | null = null;
let inTypeId: uuid | null = null;
let outTypeId: uuid | null = null;
let inCodec: ICodec | null;
let outCodec: ICodec | null;
let capabilities: number = -1;
Expand Down

0 comments on commit ddacc2d

Please sign in to comment.