Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Apr 12, 2024
1 parent d4b29ec commit ea96b13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/zwave-js/src/lib/driver/NetworkCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ function isSerializedProtocol(
s: unknown,
): boolean {
// The list of supported protocols has been around since before we started
// saving them as their stringified variant, so we // now have to deal with the following variants:
// saving them as their stringified variant, so we
// now have to deal with the following variants:
// 1. plain numbers representing a valid Protocol: 0
// 2. strings representing a valid Protocols: "ZWave"
if (typeof s === "number" && s in Protocols) return true;
Expand All @@ -304,7 +305,8 @@ function tryParseSerializedProtocol(
value: unknown,
): Protocols | undefined {
// The list of supported protocols has been around since before we started
// saving them as their stringified variant, so we // now have to deal with the following variants:
// saving them as their stringified variant, so we
// now have to deal with the following variants:
// 1. plain numbers representing a valid Protocol: 0
// 2. strings representing a valid Protocols: "ZWave"

Expand Down

0 comments on commit ea96b13

Please sign in to comment.