mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 02:39:25 +01:00
Do not use unicorn/switch-case-braces
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -77,7 +77,7 @@ function showAlert(type, icon, title, message) {
|
||||
var opts = {};
|
||||
title = " <strong>" + title + "</strong><br>";
|
||||
switch (type) {
|
||||
case "info": {
|
||||
case "info":
|
||||
opts = {
|
||||
type: "info",
|
||||
icon: "far fa-clock",
|
||||
@@ -86,9 +86,7 @@ function showAlert(type, icon, title, message) {
|
||||
};
|
||||
info = $.notify(opts);
|
||||
break;
|
||||
}
|
||||
|
||||
case "success": {
|
||||
case "success":
|
||||
opts = {
|
||||
type: "success",
|
||||
icon: icon,
|
||||
@@ -102,9 +100,7 @@ function showAlert(type, icon, title, message) {
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "warning": {
|
||||
case "warning":
|
||||
opts = {
|
||||
type: "warning",
|
||||
icon: "fas fa-exclamation-triangle",
|
||||
@@ -118,9 +114,7 @@ function showAlert(type, icon, title, message) {
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "error": {
|
||||
case "error":
|
||||
opts = {
|
||||
type: "danger",
|
||||
icon: "fas fa-times",
|
||||
@@ -134,8 +128,6 @@ function showAlert(type, icon, title, message) {
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user