Commit 05af8b8
committed
Declare
`translate_generic_conf/2` returns a map carrying a `depth` key, which
the plaintext and JSON formatter translators merge into their results.
The `formatter_plaintext_conf()` and `formatter_json_conf()` types do not
declare `depth`, so dialyzer infers a return that violates the
`translate_*_formatter_conf` contracts and reports "has no local return".
Add `depth := unlimited | pos_integer()` to both types, matching the
field already present on `formatter_generic_conf()`.depth in formatter conf types for dialyzer1 parent 448c8f2 commit 05af8b8
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
0 commit comments