CI: Apply Go linter recommendations to remaining "pkg/..." code #5330

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-11-22 16:14:43 +01:00
parent 90ab65a9b0
commit 149f5e5731
116 changed files with 541 additions and 351 deletions

View File

@@ -1,7 +1,6 @@
package capture
import (
"fmt"
"testing"
"time"
@@ -11,6 +10,6 @@ import (
func TestTime(t *testing.T) {
start := time.Now()
time.Sleep(1 * time.Millisecond)
result := Time(start, fmt.Sprintf("%s", "Successful test"))
result := Time(start, "Successful test")
assert.Contains(t, result, "Successful test [")
}