Skip to content

Commit 5e9305b

Browse files
committed
refactor: Remove not used code
1 parent 9f75cd6 commit 5e9305b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func handleGetOpenapi(version string) http.HandlerFunc {
155155
w.Header().Set("Access-Control-Allow-Origin", "*")
156156
w.WriteHeader(http.StatusOK)
157157
if _, err := w.Write(body); err != nil {
158-
slog.ErrorContext(r.Context(), "failed to write openapi", slog.Any("error", err))
158+
http.Error(w, err.Error(), http.StatusInternalServerError)
159159
}
160160
}
161161
}

0 commit comments

Comments
 (0)