Code cleaning
Description
The if statement is not needed because of the above assert.
News snippet
Code cleaning.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.