Skip to content

Commit 25464e9

Browse files
committed
chore: code smells
1 parent 650fffa commit 25464e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

models/filters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (f *Filters) One() (bool, uint8, string) {
4343
return true, SummaryEditor, f.Editor
4444
} else if f.Machine != "" {
4545
return true, SummaryMachine, f.Machine
46-
} else if f.Machine != "" {
46+
} else if f.Label != "" {
4747
return true, SummaryLabel, f.Label
4848
}
4949
return false, 0, ""

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sonar.exclusions=**/*_test.go,.idea/**,.vscode/**,mocks/**,static/**
1+
sonar.exclusions=**/*_test.go,.idea/**,.vscode/**,mocks/**,static/**,views/mail/**
22
sonar.tests=.
33
sonar.go.coverage.reportPaths=coverage/coverage.out

views/settings.tpl.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ <h3 class="inline-block font-semibold text-md mb-4 border-b border-green-700">
596596

597597
<p class="mb-4">Wakapi intregrates with <a
598598
href="https://github.com/anuraghazra/github-readme-stats#wakatime-week-stats"
599-
class="underline" target="_blank" rel="noopener noreferrer" alt="Readme Stats Card">GitHub Readme Stats</a> to
599+
class="underline" target="_blank" rel="noopener noreferrer">GitHub Readme Stats</a> to
600600
generate fancy cards for you.</p>
601601

602602
{{ if ne .User.ShareDataMaxDays 0 }}
@@ -606,7 +606,7 @@ <h3 class="font-semibold">Example:</h3>
606606
</div>
607607
<div class="flex flex-col mb-4 mt-2">
608608
<img src="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"
609-
class="with-url-src-no-scheme">
609+
class="with-url-src-no-scheme" alt="Readme Stats Card">
610610
<p class="mt-2"><strong>Source URL:</strong>
611611
<span class="break-words text-xs bg-gray-900 rounded py-1 px-2 font-mono with-url-inner-no-scheme">
612612
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

0 commit comments

Comments
 (0)