Skip to content

Commit

Permalink
Fix the remaining lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: XhmikosR <[email protected]>
  • Loading branch information
XhmikosR committed Dec 17, 2019
1 parent debbe9b commit ed38051
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/pi-hole/js/customdns.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function showAlert(type, message) {
return;
}

if (messageElement != null) messageElement.html(message);
if (messageElement !== null) messageElement.html(message);

alertElement.fadeIn(200);
alertElement.delay(8000).fadeOut(2000);
Expand Down
6 changes: 6 additions & 0 deletions scripts/pi-hole/js/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ function piholeChanged(action) {
ena.show();
dis.hide();
break;

default:
// nothing
}
}

Expand Down Expand Up @@ -86,6 +89,9 @@ function piholeChange(action, duration) {
}
});
break;

default:
// nothing
}
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/pi-hole/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

// Define global variables
/* global Chart:false, updateSessionTimer:false */
var timeLineChart, forwardDestinationChart;
var queryTypePieChart, forwardDestinationPieChart, clientsChart;
var forwardDestinationChart; // eslint-disable-line no-unused-vars
var timeLineChart, queryTypePieChart, forwardDestinationPieChart, clientsChart;

function padNumber(num) {
return ("00" + num).substr(-2, 2);
Expand Down

0 comments on commit ed38051

Please sign in to comment.