mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CI: Apply Go linter recommendations to "ai/tensorflow" package #5330
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -24,11 +24,12 @@ func TestGetModelTagsInfo(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if len(info) != 1 {
|
||||
switch {
|
||||
case len(info) != 1:
|
||||
t.Fatalf("Expected 1 info but got %d", len(info))
|
||||
} else if len(info[0].Tags) != 1 {
|
||||
case len(info[0].Tags) != 1:
|
||||
t.Fatalf("Expected 1 tag, but got %d", len(info[0].Tags))
|
||||
} else if info[0].Tags[0] != "photoprism" {
|
||||
case info[0].Tags[0] != "photoprism":
|
||||
t.Fatalf("Expected tag photoprism, but have %s", info[0].Tags[0])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user