Linting rules
E006: pure-function-call-unused
Checks for calls to `@pure` functions where the result is not used.
Metadata
Code:E006Rule:pure-function-call-unusedStatus: Stable sincev1.0.0Quick fix: not available
What it does
Checks for calls to @pure functions where the result is not used.
Why is this bad?
An unused result may indicate a missing assignment or check.
A @pure call can still throw an exception.
Use the result, or discard it explicitly with val _ = ....
Example
fun main() {
createEmptyCell();}Last updated on