Removed redundant check for @eof