Skip to content

Commit e16db3f

Browse files
committed
refactor: apply linter suggestions
1 parent 020d159 commit e16db3f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

filesystemserver/handler.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414

1515
"github.com/gabriel-vasile/mimetype"
1616
"github.com/mark3labs/mcp-go/mcp"
17+
"slices"
1718
)
1819

1920
const (
@@ -318,10 +319,8 @@ func isTextFile(mimeType string) bool {
318319
"application/x-shellscript",
319320
}
320321

321-
for _, textType := range textApplicationTypes {
322-
if mimeType == textType {
323-
return true
324-
}
322+
if slices.Contains(textApplicationTypes, mimeType) {
323+
return true
325324
}
326325

327326
// Check for +format types
@@ -1763,7 +1762,7 @@ func (fs *FilesystemHandler) handleReadMultipleFiles(
17631762
}
17641763

17651764
// Convert the paths parameter to a string slice
1766-
pathsSlice, ok := pathsParam.([]interface{})
1765+
pathsSlice, ok := pathsParam.([]any)
17671766
if !ok {
17681767
return nil, fmt.Errorf("paths must be an array of strings")
17691768
}

0 commit comments

Comments
 (0)