We can change this into an early-return if the filename is empty. There's no need to include all of the code within the if statement.
We can change this into an early-return if the filename is empty. There's no need to include all of the code within the if statement.