mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-10-12 04:55:18 +00:00
fix(lint): clear the staticcheck findings
Drop the RealIP middleware: the worker listens on 127.0.0.1 only, and RealIP is deprecated because a client can set its own address. Log the restart error directly, since Restart only returns on failure. Remove an unused slice in a test and pass a real context instead of nil. staticcheck now reports nothing.
This commit is contained in:
@@ -1213,7 +1213,6 @@ func (s *Service) setupMiddleware() {
|
||||
|
||||
s.router.Use(middleware.Logger)
|
||||
s.router.Use(middleware.Recoverer)
|
||||
s.router.Use(middleware.RealIP)
|
||||
|
||||
// Add security headers (X-Frame-Options, X-Content-Type-Options, CSP, etc.)
|
||||
s.router.Use(SecurityHeaders)
|
||||
|
||||
Reference in New Issue
Block a user