I tested it this is actually the correct indent. It is indented as if the then was on the next line. you can try it by pushing the then on the next line and nothing changes. there 4 spaces for the then and 4 for the function and you can see it at the close brackets