Skip to content

deferred-return-function-not-called

Default severity: warning

Functions sometimes perform setup immediately and return a function that performs cleanup. Deferring only the first call delays setup until function exit and then discards the returned cleanup function.

defer setup()
defer setup()()