aboutsummaryrefslogtreecommitdiff
path: root/objectid
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-04 08:25:05 +0800
committerGravatar Runxi Yu2026-03-04 08:25:05 +0800
commit34d47f9e0cf66904432a3c774707b4773273ef4f (patch)
treef639f1d5ab04ae10805901034517f51559639e7f /objectid
parentrefstore/packed: Use os.Root (diff)
signatureNo signature
*: gofumpt
Diffstat (limited to 'objectid')
-rw-r--r--objectid/objectid.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/objectid/objectid.go b/objectid/objectid.go
index 2c085abf..7ce011f3 100644
--- a/objectid/objectid.go
+++ b/objectid/objectid.go
@@ -64,8 +64,10 @@ var algorithmTable = [...]algorithmDetails{
},
}
-var algorithmByName = map[string]Algorithm{}
-var supportedAlgorithms []Algorithm
+var (
+ algorithmByName = map[string]Algorithm{}
+ supportedAlgorithms []Algorithm
+)
func init() {
for algo := Algorithm(0); int(algo) < len(algorithmTable); algo++ {