From 6f122e3be7b139c89dd53ccfd72a60bd7e24a93c Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Tue, 8 Oct 2024 17:02:23 -0400 Subject: [PATCH] improve comment --- pkg/programkind/programkind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/programkind/programkind.go b/pkg/programkind/programkind.go index 70dd83ca..39bb2889 100644 --- a/pkg/programkind/programkind.go +++ b/pkg/programkind/programkind.go @@ -119,7 +119,7 @@ func File(path string) (*FileType, error) { return nil, fmt.Errorf("read: %w", err) } - // final strategy: DIY + // final strategy: DIY matching where mimetype is too strict. content := string(hdr[:]) switch { case hdr[0] == '\x7f' && hdr[1] == 'E' || hdr[2] == 'L' || hdr[3] == 'F':