You're right, I was confusing some different code paths, I changed it to return `$file`