style: fix whitespace in middleware.go
This commit is contained in:
parent
c8e76a52b7
commit
4f6c24802c
1 changed files with 0 additions and 2 deletions
|
|
@ -93,7 +93,6 @@ func ErrorHandler(next http.Handler) http.Handler {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// writeErrorResponse writes a consistent error response
|
// writeErrorResponse writes a consistent error response
|
||||||
func writeErrorResponse(w http.ResponseWriter, statusCode int, code, message string, details map[string]string) {
|
func writeErrorResponse(w http.ResponseWriter, statusCode int, code, message string, details map[string]string) {
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
|
@ -156,4 +155,3 @@ func (rw *responseWriter) Flush() {
|
||||||
flusher.Flush()
|
flusher.Flush()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue