aboutsummaryrefslogtreecommitdiff
path: root/internal/extract/extract.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 23:24:08 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-14 23:24:08 +0200
commit11a2c57c6eeaff0ef963fc6f8b74caa27b147bdb (patch)
tree336b39597f95d6b97b460075cb50371c979e733c /internal/extract/extract.go
parentc66a842ce4679a3ffa5504dad39b1402bea75e9f (diff)
downloadkrino-11a2c57c6eeaff0ef963fc6f8b74caa27b147bdb.tar.gz
krino-11a2c57c6eeaff0ef963fc6f8b74caa27b147bdb.zip
text that turns binary further on has no content, like an image
Diffstat (limited to 'internal/extract/extract.go')
-rw-r--r--internal/extract/extract.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/extract/extract.go b/internal/extract/extract.go
index 376e09b..7e3adec 100644
--- a/internal/extract/extract.go
+++ b/internal/extract/extract.go
@@ -23,11 +23,6 @@ var (
// ErrUnsupported is returned when the format carries no text krino
// knows how to extract.
ErrUnsupported = errors.New("no text in this format")
- // ErrMixed is returned for a file of no known extension whose first
- // 8 KiB read as text but which holds a NUL or invalid UTF-8 further on.
- // Unlike ErrUnsupported it is a read failure: the text it began with
- // could hold a keyword (plan 10 re-check R4).
- ErrMixed = errors.New("text at the start, binary data further on")
// ErrTooLarge is returned when the file is larger than the configured
// max-read; nothing is read in that case.
ErrTooLarge = errors.New("larger than max-read")