[#191] Fix lint issues

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-08-12 12:54:19 +03:00 committed by Kirillov Denis
parent 6789dbc6a9
commit 1bd31a9e1d
2 changed files with 5 additions and 4 deletions

View file

@ -26,9 +26,9 @@ func main() {
// Panics on failure. // Panics on failure.
// //
// Logger is built from zap's production logging configuration with: // Logger is built from zap's production logging configuration with:
// * parameterized level (debug by default) // - parameterized level (debug by default)
// * console encoding // - console encoding
// * ISO8601 time encoding // - ISO8601 time encoding
// //
// Logger records a stack trace for all messages at or above fatal level. // Logger records a stack trace for all messages at or above fatal level.
// //

View file

@ -413,6 +413,7 @@ func (r *Reader) isBoundaryDelimiterLine(line []byte) (ret bool) {
// skipLWSPChar returns b with leading spaces and tabs removed. // skipLWSPChar returns b with leading spaces and tabs removed.
// RFC 822 defines: // RFC 822 defines:
//
// LWSP-char = SPACE / HTAB // LWSP-char = SPACE / HTAB
func skipLWSPChar(b []byte) []byte { func skipLWSPChar(b []byte) []byte {
for len(b) > 0 && (b[0] == ' ' || b[0] == '\t') { for len(b) > 0 && (b[0] == ' ' || b[0] == '\t') {