[mdns] simplify the validation check

This CL simplifies the code for validating the service by reducing a
level of indention.

Bug: 342954618

Change-Id: I8a239c3ea39560e4c2bc3b42e5be0a757a737fdd
1 file changed