mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CI: Apply Go linter recommendations to remaining "pkg/..." code #5330
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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 [")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user