From 25464e9519be7f3131a0886a09ff1f9d052c5a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Sun, 13 Jun 2021 10:14:15 +0200 Subject: [PATCH] chore: code smells --- models/filters.go | 2 +- sonar-project.properties | 2 +- views/settings.tpl.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models/filters.go b/models/filters.go index 04f43be..7637872 100644 --- a/models/filters.go +++ b/models/filters.go @@ -43,7 +43,7 @@ func (f *Filters) One() (bool, uint8, string) { return true, SummaryEditor, f.Editor } else if f.Machine != "" { return true, SummaryMachine, f.Machine - } else if f.Machine != "" { + } else if f.Label != "" { return true, SummaryLabel, f.Label } return false, 0, "" diff --git a/sonar-project.properties b/sonar-project.properties index 1dda6b6..c469b7f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,3 +1,3 @@ -sonar.exclusions=**/*_test.go,.idea/**,.vscode/**,mocks/**,static/** +sonar.exclusions=**/*_test.go,.idea/**,.vscode/**,mocks/**,static/**,views/mail/** sonar.tests=. sonar.go.coverage.reportPaths=coverage/coverage.out \ No newline at end of file diff --git a/views/settings.tpl.html b/views/settings.tpl.html index c0b7f0f..1e0fab0 100644 --- a/views/settings.tpl.html +++ b/views/settings.tpl.html @@ -596,7 +596,7 @@

Wakapi intregrates with GitHub Readme Stats to + class="underline" target="_blank" rel="noopener noreferrer">GitHub Readme Stats to generate fancy cards for you.

{{ if ne .User.ShareDataMaxDays 0 }} @@ -606,7 +606,7 @@
+ class="with-url-src-no-scheme" alt="Readme Stats Card">

Source URL: https://github-readme-stats.vercel.app/api/wakatime?username={{ .User.ID }}&api_domain=%s&bg_color=2D3748&title_color=2F855A&icon_color=2F855A&text_color=ffffff&custom_title=Wakapi%20Week%20Stats&layout=compact