Remove conditional wrapper.destroy() call
Description
As @markrian pointed out, we have some cases, where wrapper.destroy()
is called inside if
block. These cases are not triggering the linter rule yet, but they should still be removed.
Example:
afterEach(() => {
if (wrapper) {
wrapper.destroy();
}
Edited by Andrei Zubov