I'm not sure it's such a big worry here. One nice improvement would be to define the error strings in an array: trtn.faultstring=[,"No probe detected",,"Probe shorted to Ground","Probe shorted to VCC"][trtn.fault]
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm not sure it's such a big worry here. One nice improvement would be to define the error strings in an array:
trtn.faultstring=[,"No probe detected",,"Probe shorted to Ground","Probe shorted to VCC"][trtn.fault]