Duolith docs

Warnings while reading a page

W0042 Otherwise that is never shown

Message <otherwise> is never shown: the <show> before it is always true

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

<show when=true> never hides its children, so the <otherwise> after it is never shown.

How to fix it

Remove the <otherwise> (duolith lint --fix does), or give the <show> a condition that can change.

In a terminal

duolith explain W0042

Mentioned in