mirror of
https://github.com/hhftechnology/middleware-manager.git
synced 2026-07-16 03:18:24 +00:00
Replace direct defers that ignored returned errors with explicit defer func() { _ = ... }() and use blank-assignment for Setenv/RemoveAll/Close to satisfy error-checking and ensure closures run. Convert several if-else chains to switch for clarity (status filter, test server path matching), switch strings.Replace to strings.ReplaceAll, and normalize some error/log message casing. These changes are minor refactors across handlers, services, database and tests to improve lint compliance and readability.
|
||
|---|---|---|
| .. | ||
| datasource.go | ||
| datasource_test.go | ||
| middleware.go | ||
| middleware_test.go | ||
| middleware_types.go | ||
| middleware_types_test.go | ||
| mtls.go | ||
| plugin.go | ||
| resource.go | ||
| security.go | ||
| security_test.go | ||
| service.go | ||
| service_test.go | ||
| traefik_api.go | ||
| traefik_api_test.go | ||
| traefik_types.go | ||
| traefik_types_test.go | ||