Both notations will produce the exact same code.
You need to use the then when you have configuration variables.
Eg, following would produce malformed yaml. Therefore that extra then level would then be needed. Just for best practice: always use the then, that way it’s much easier to extend later with config values.