chore: update golangci-lint config and fix lint issues (#542)

* chore: update golangci-lint config and fix lint issues
This commit is contained in:
Roger authored and GitHub committed 2026-04-04 16:26:07 +08:00
1 parent e35907de6f
commit 92053b85b0
14 files changed
+116 -138

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ func newFormatter(name string) (formatter, error) {
case "json":
return &jsonFormatter{}, nil
case "cookie-editor":
return &cookieEditorFormatter{}, nil
return &cookieEditorFormatter{fallback: &jsonFormatter{}}, nil
default:
return nil, fmt.Errorf("unsupported format: %s", name)
}