From 023b203af0e0ebb50719ba180186b3360edccd09 Mon Sep 17 00:00:00 2001 From: John Taylor Date: Wed, 19 Jan 2022 15:58:45 -0500 Subject: [PATCH] remove unreachable code path --- chars.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chars.go b/chars.go index afa1b31..81188da 100644 --- a/chars.go +++ b/chars.go @@ -3,8 +3,8 @@ chars.go -John Taylor Jan-16-2022 -Determine the end-of-line format, tabs, bom, and nul -Pass wildcard filename globs on the command line +Determine the end-of-line format, tabs, bom, and nul characters +https://github.com/jftuga/chars */ package chars @@ -142,7 +142,6 @@ func searchForSpecialChars(filename string, buf *bufio.Reader, examineBinary boo } prev = b } - return SpecialChars{Filename: filename, Crlf: crlf, Lf: lf, Tab: tab, Bom8: bom8, Bom16: bom16, Nul: nul, BytesRead: bytesRead}, charsError{code: 0, err: ""} } // OutputTextTable - display a text table with each filename and the number of special characters