Skip to content

Commit

Permalink
revert node14 code features
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 15, 2020
1 parent de82f10 commit 123f685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/govee-http.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = class goveeHTTP {
}
const deviceList = []
// if (body.data.devices?.length > 0) {
if (body.data.devices && body.data.devices.length > 0)
if (body.data.devices && body.data.devices.length > 0) {
body.data.devices.forEach(device => deviceList.push(device))
}
return deviceList
Expand Down

0 comments on commit 123f685

Please sign in to comment.