Refactor: Reduce indents of resourceMatches()
Refactor: Reduce indents of resourceMatches()

The methods had deep indents and it was difficult to understand
how to work on resourceMatches() and nonResourceMatches().
This reduces these indents for reading the code easily.

kubernetes/cloud-provider-openstack,kubernetes/cloud-provider-openstack,kubernetes/cloud-provider-openstack