lint warning changes

This commit is contained in:
proddy
2021-08-01 23:44:40 +02:00
parent 4863ecc329
commit 53e25ae213
3 changed files with 11 additions and 8 deletions

View File

@@ -899,17 +899,17 @@ app.get(EMSESP_STATUS_ENDPOINT, (req, res) => {
})
app.post(EMSESP_DEVICEDATA_ENDPOINT, (req, res) => {
const id = req.body.id
if (id == 1) {
if (id === 1) {
const encoded = msgpack.encode(emsesp_devicedata_1)
res.write(encoded, 'binary')
res.end(null, 'binary')
}
if (id == 2) {
if (id === 2) {
const encoded = msgpack.encode(emsesp_devicedata_2)
res.write(encoded, 'binary')
res.end(null, 'binary')
}
if (id == 3) {
if (id === 3) {
const encoded = msgpack.encode(emsesp_devicedata_3)
res.write(encoded, 'binary')
res.end(null, 'binary')