From 1e84f51825c62962b589283ff8d3cf9ce136cb17 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Sun, 22 Jan 2023 15:50:02 +0100 Subject: [PATCH] Fixed deepscan analysis warnings --- src/components/Widgets/Mvg.vue | 4 +--- src/components/Widgets/MvgConnection.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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: {