func runnerMiddleware(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc) { if runnerutils.HasErrors() { runnerutils.RenderError(rw) return } next(rw, req) }
func runnerMiddleware(w http.ResponseWriter, r *http.Request) { if runnerutils.HasErrors() { runnerutils.RenderError(w) } }