Files
music_library/backlog/completed/ml-87 - ArtistInfo.country-1-assumes-map-key-exists.md
T
2026-05-04 21:22:27 +01:00

773 B

id, title, status, assignee, created_date, labels, dependencies, references, priority
id title status assignee created_date labels dependencies references priority
ML-87 ArtistInfo.country/1 assumes map key exists Done
2026-04-20 08:57
https://github.com/cloud8421/music_library/issues/87
low

Description

GitHub: created 2026-02-17 · updated 2026-03-06 · closed 2026-03-06

Priority: Low

Description

lib/music_library/artists/artist_info.ex:34-35 — Pattern matches on %{"area" => area} = artist_info.musicbrainz_data which crashes with MatchError if the "area" key is missing.

Expected behavior

Use Map.get/3 with a default value instead of pattern matching.

Source

From technical debt audit (2026-02-17), item #14.