From f2922155de01b734e3e8b3f50be8f263ec13cacd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 18:38:44 +0800 Subject: *: Lint --- objectid/algorithms.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'objectid') diff --git a/objectid/algorithms.go b/objectid/algorithms.go index a07edf7b..404d3bbf 100644 --- a/objectid/algorithms.go +++ b/objectid/algorithms.go @@ -26,6 +26,7 @@ type algorithmDetails struct { new func() hash.Hash } +//nolint:gochecknoglobals var algorithmTable = [...]algorithmDetails{ AlgorithmUnknown: {}, AlgorithmSHA1: { @@ -61,7 +62,9 @@ var algorithmTable = [...]algorithmDetails{ } var ( - algorithmByName = map[string]Algorithm{} + //nolint:gochecknoglobals + algorithmByName = map[string]Algorithm{} + //nolint:gochecknoglobals supportedAlgorithms []Algorithm ) -- cgit v1.3.1-10-gc9f91