Adapters are either center positive or center negative. Guitar pedals are standardized to accept center negative. The diode protects the pedal if you accidentally plug in a center positive polarity. But any power supply marketed for guitar pedals will be center negative, I don’t think I’ve ever had a 9v center positive in my guitar area, so mixing up isn’t really a concern, but I always add the diode just out of practice