options/ansi: Fix formatting in stdio-stubs.cpp
@@ -1230,15 +1230,6 @@ char *fgets_unlocked(char *__restrict buffer, int max_size, FILE *stream) {
// If fgetc() fails, there is either an EOF or an I/O error.
if(c == EOF) {
- // if(ferror(stream)) {
- // // Technically, we do not have to terminate the buffer in this case;
- // // do it anyway to avoid UB if apps do not check our result.
- // buffer[i] = 0;
- // return nullptr;
- // }
-
- // EOF is only an error if no chars have been read yet.
- //__ensure(feof(stream));
if(i) {
buffer[i] = 0;
return buffer;
