mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
refactor(items): extract inline data tables from handleMsgMhfEnumeratePrice
Static data (GZ monster prices, LB prices, wanted list) cluttered the handler with 130 lines of table literals. Moving them to a dedicated tables file keeps the handler focused on serialization logic.
This commit is contained in:
@@ -135,4 +135,4 @@ Tests for those handlers either use stub handlers that skip repos or rely on int
|
||||
|
||||
**Fix:** Extract to package-level `var` declarations or a dedicated data file (following the pattern of `handlers_data_paper_tables.go`).
|
||||
|
||||
**Status:** Pending.
|
||||
**Status:** **Done.** Extracted 3 inline data tables (LB prices, wanted list, GZ prices) and their anonymous struct types to `handlers_items_tables.go`. Handler function reduced from 164 to 35 lines.
|
||||
|
||||
Reference in New Issue
Block a user