From 3c0cecd3459400f7582607a7f2edec54060bf57b Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 10 Apr 2023 20:28:33 +0700 Subject: lib/bytes: fix linter warnings from revive --- lib/bytes/bytes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bytes/bytes.go') diff --git a/lib/bytes/bytes.go b/lib/bytes/bytes.go index d3e1022a..28a35fa1 100644 --- a/lib/bytes/bytes.go +++ b/lib/bytes/bytes.go @@ -443,7 +443,7 @@ func ReadHexByte(data []byte, x int) (b byte, ok bool) { if len(data) < x+2 { return 0, false } - var y int = 4 + var y = 4 for y >= 0 { switch { case data[x] >= '0' && data[x] <= '9': -- cgit v1.3