Skip to content

Commit

Permalink
fix issues reported by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Oct 5, 2023
1 parent a057b5e commit 32923d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,8 @@ function checkCurApp(powerOff){
lgtvobj.disconnect();
setTimeout(lgtvobj.connect,500,hostUrl);
if (healthInterval !== false){
healthInterval= setInterval(sendCommand, adapter.config.healthInterval || 60000, 'ssap://com.webos.service.tv.time/getCurrentTime', null, (err, val) => {
adapter.log.debug("check TV connection: " + (err || 'ok'))
healthInterval= setInterval(sendCommand, adapter.config.healthInterval || 60000, 'ssap://com.webos.service.tv.time/getCurrentTime', null, (err, _val) => {
adapter.log.debug('check TV connection: ' + (err || 'ok'));
if (err)
checkCurApp(true);
});
Expand Down Expand Up @@ -646,7 +646,7 @@ function bypassCertificateValidation() {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
const tls = require('tls');

tls.checkServerIdentity = (servername, cert) => {
tls.checkServerIdentity = (_servername, _cert) => {
// Skip certificate verification
return undefined;
};
Expand Down

0 comments on commit 32923d5

Please sign in to comment.