You just needed to indent the first line.
Now you’ve removed all indentation which removes all of this code from the function. Look at the original indentation again:
And here it is in context with the rest of the function