aboutsummaryrefslogtreecommitdiff
path: root/lib/memfs/memfs_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-04-05 03:50:32 +0700
committerShulhan <ms@kilabit.info>2026-04-05 03:52:47 +0700
commit778fd16011ec1d39c41b62372dc65f045183266e (patch)
treea6f6f26930c00d8ac3dd7bfa1fb476bd65454833 /lib/memfs/memfs_test.go
parent6fba7b9ce3bcaf4225e5ab774a15ef7364ed1420 (diff)
downloadpakakeh.go-778fd16011ec1d39c41b62372dc65f045183266e.tar.xz
all: apply go fix
Diffstat (limited to 'lib/memfs/memfs_test.go')
-rw-r--r--lib/memfs/memfs_test.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/memfs/memfs_test.go b/lib/memfs/memfs_test.go
index 86d2cc26..dab393eb 100644
--- a/lib/memfs/memfs_test.go
+++ b/lib/memfs/memfs_test.go
@@ -12,6 +12,7 @@ import (
"log"
"os"
"path/filepath"
+ "slices"
"testing"
"time"
@@ -393,13 +394,7 @@ func TestMemFS_Get(t *testing.T) {
continue
}
- found := false
- for _, expCT := range c.expContentType {
- if expCT == got.ContentType {
- found = true
- break
- }
- }
+ found := slices.Contains(c.expContentType, got.ContentType)
if !found {
t.Errorf("expecting one of the Content-Type %v, got %s",
c.expContentType, got.ContentType)