Fixed 'RedundantIfElseBlockIssue'.