Commit eb74331
fix: use IO.iodata_to_binary before pattern-matching format output
The pattern-matching on `Code.format_string!/2` output directly works on
Elixir 1.19 where dialyzer infers binary() | nonempty_improper_list(),
but fails on Elixir 1.18 where the return type is [binary()] and the
"" pattern cannot match. Normalize to binary first so the check is
version-agnostic.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f2b1caf commit eb74331
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | | - | |
| 265 | + | |
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
| |||
0 commit comments