[tor-commits] [nyx/master] Simplify get_type()