Return from func instead of exit 0 on EOF in cat

I was exiting 0 instead of just returning from the cat function
which, when running against more than one file, would prematurely
terminate cat.