Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Fixed deepscan analysis warnings

Matthias Bilger1e84f51825c6
diff --git a/src/components/Widgets/Mvg.vue b/src/components/Widgets/Mvg.vue
index 564d25de..a4f74c8b 100644
--- a/src/components/Widgets/Mvg.vue
+++ b/src/components/Widgets/Mvg.vue
@@ -135,9 +135,7 @@ export default {
},
filter_results(value) {
if (!this.options.filters) return true;
- let useEntry = true;
- useEntry = useEntry
- && (
+ let useEntry = (
(!this.options.filters.line)
|| this.ensure_array(this.options.filters.line).includes(value.label)
);
diff --git a/src/components/Widgets/MvgConnection.vue b/src/components/Widgets/MvgConnection.vue
index 9f644c7c..2bd76da1 100644
--- a/src/components/Widgets/MvgConnection.vue
+++ b/src/components/Widgets/MvgConnection.vue
@@ -108,7 +108,7 @@ export default {
if (s.length < 2) s = `0${s}`;
return s;
}
- return `${Math.floor(val / 3600000, 0)}:${ii(Math.floor(val / 60000, 0))}`;
+ return `${Math.floor(val / 3600000)}:${ii(Math.floor(val / 60000))}`;
},
},
computed: {