summaryrefslogtreecommitdiff
path: root/internal/io/fs/readfile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/io/fs/readfile.go')
-rw-r--r--internal/io/fs/readfile.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/io/fs/readfile.go b/internal/io/fs/readfile.go
index f37b07d..90c5966 100644
--- a/internal/io/fs/readfile.go
+++ b/internal/io/fs/readfile.go
@@ -26,6 +26,7 @@ import (
type readStatus int
const (
+ nothing readStatus = iota
abortReading readStatus = iota
continueReading readStatus = iota
)
@@ -300,7 +301,7 @@ func (f *readFile) handleReadError(ctx context.Context, err error, fd *os.File,
return abortReading, nil
}
- return continueReading, nil
+ return nothing, nil
}
// Now process the byte we just read from the fd.
@@ -333,5 +334,5 @@ func (f *readFile) handleReadByte(ctx context.Context, b byte,
}
}
- return continueReading, message
+ return nothing, message
}