From 64e8013c1b1076c269f789188c004eb34121c852 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 31 May 2024 16:06:48 +0200 Subject: [PATCH] build: fix gocritic lint issue sloppylen --- fs/operations/operations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/operations/operations.go b/fs/operations/operations.go index 92b64f359..f14ecb61e 100644 --- a/fs/operations/operations.go +++ b/fs/operations/operations.go @@ -1283,7 +1283,7 @@ func Cat(ctx context.Context, f fs.Fs, w io.Writer, offset, count int64, sep []b err = fs.CountError(err) fs.Errorf(o, "Failed to send to output: %v", err) } - if len(sep) >= 0 { + if len(sep) > 0 { _, err = w.Write(sep) if err != nil { err = fs.CountError(err)