Skip to content

Commit 5f6aa5d

Browse files
committed
fix(connection): fix "SyntaxError: Unexpected token '.' (line:602)"; closes #184
1 parent f8c4443 commit 5f6aa5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ module.exports = function (RED) {
599599
return response.data
600600
} catch (error) {
601601
throw new Error(
602-
`HTTP Error Response: ${response?.status ?? 'n/a'} ${
603-
response?.statusText ?? 'n/a'
602+
`HTTP Error Response: ${response.status ?? 'n/a'} ${
603+
response.statusText ?? 'n/a'
604604
}`
605605
)
606606
}

0 commit comments

Comments
 (0)