#66780Remove deeply nested if structures by guard clauses
Description
There are some deeply nested if-structures in the versioning extension, which get replaced with guard clauses with early returns in this commit.
There are some deeply nested if-structures in the versioning extension, which get replaced with guard clauses with early returns in this commit.