SonarQube Fix : Merge the enclosing if statement.

I love learning about technology and sharing that with others
So I was fixing the sonarQube reported issues in our codebase.
here we have multiple if statement and those can be bundled together.
Non Compliant code :

Compliant Code :
here we have put the next if condition in the same if statement , we can also create a function and pass that function with the if statement , currently this works for me.


