Files
compiler-explorer/static/api
mattgodbolt-molty 39723aa78d refactor: simplify and deduplicate
backend-api.ts:
- Extract parseErrorBody() module helper — both postJson and
  getAssemblyDocumentation now share one error-body extraction path
  rather than duplicating the try/json/field-scan/fallback logic
- Drop 'import _ from underscore' — formatCode now destructures
  FormattingRequest directly instead of using \_.pick
- postJson error message no longer prefixed 'Request failed:' —
  the extracted message is already self-describing

compiler-service.ts:
- Extract private submitToCompiler(request, compileFn) — submit and
  submitCMake were identical except for the compile function called;
  both are now one-liners delegating to the shared helper

🤖 Generated by LLM (Claude, via OpenClaw)
2026-02-22 18:03:17 -06:00
..