Skip to content

Commit

Permalink
fix: minor type error
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Jul 27, 2024
1 parent 9f91cb7 commit b3b373c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/readable-name-functions/get-readable-name-for-pcb-port.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export const getReadableNameForPcbPort = (
// Determine the pad number or hint
let padIdentifier: string
if (sourcePort?.port_hints && sourcePort.port_hints.length > 0) {
padIdentifier = sourcePort.port_hints[0]
padIdentifier = sourcePort.port_hints[0]!
} else if (sourcePort.port_hints && sourcePort.port_hints.length > 0) {
padIdentifier = sourcePort.port_hints[0]
padIdentifier = sourcePort.port_hints[0]!
} else {
padIdentifier = pcb_port_id
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b3b373c

Please sign in to comment.