There is no need for this local variable. Just return directly the detected os family.