'nil' as a statement is deprecated, use an empty 'discard' instead