Removed redundant code from sendFile

Removed some dead code.

`$contentType` is checked for trueness on a parent `if`. The `else` block will be run only if it evaluates to `false`, so it's useless to check again for it inside.