fix(ui): resolve lint issues in file browser

This commit is contained in:
2026-10-03 20:16:20 +02:00
parent 66b90ca54b
commit 43265dac0f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func MatchesExtension(name string, exts []string) bool {
}
ext := strings.ToLower(filepath.Ext(name))
for _, e := range exts {
if strings.ToLower(e) == ext {
if strings.EqualFold(e, ext) {
return true
}
}
+1 -2
View File
@@ -87,8 +87,7 @@ func (se *SchemaEditor) showFileBrowser(cfg FileBrowserConfig) {
cfg.OnSelect(path)
}
var refresh func()
refresh = func() {
refresh := func() {
exts := cfg.Extensions
if !useFilter {
exts = nil