-
Nicolas Despres authored
Make it a static method instead of an array. It is safer for the type checking and if we add a new target type we will be warned to add a case to the switch.
3db2973b
Make it a static method instead of an array. It is safer for the type checking and if we add a new target type we will be warned to add a case to the switch.