Skip to content

Commit

Permalink
Code prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaquu committed Feb 19, 2024
1 parent 73b800d commit c602d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/HAPHostNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = (RED: NodeAPI, hostType: HostType) => {

if ((oldPinCode.match(/-/g) || []).length == 1) {
oldPinCode = oldPinCode.replace(/-/g, '')
oldPinCode = `${oldPinCode.slice(0, 3)}-${oldPinCode.slice(3,5)}-${oldPinCode.slice(5, 8)}`
oldPinCode = `${oldPinCode.slice(0, 3)}-${oldPinCode.slice(3, 5)}-${oldPinCode.slice(5, 8)}`
}

self.host.publish(
Expand Down

0 comments on commit c602d00

Please sign in to comment.