Removed pointless if statement

If statement wasn't needed as the file will be created regardless later
on.