aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-22 08:00:00 +0800
committerGravatar Runxi Yu2025-11-22 08:00:00 +0800
commit97f5de11348985042b8538091807ef2dbe21a8a0 (patch)
treef0d8a1ff31f1c959fe67555fe12e8f42cef85722 /internal
parentRemove the multi-pack-index tests which is unused anyway (diff)
signatureNo signature
flatex: Reformat code
Diffstat (limited to 'internal')
-rw-r--r--internal/flatex/inflate.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/flatex/inflate.go b/internal/flatex/inflate.go
index 5e9d861e..ca85b355 100644
--- a/internal/flatex/inflate.go
+++ b/internal/flatex/inflate.go
@@ -28,9 +28,11 @@ const (
numCodes = 19 // number of codes in Huffman meta-code
)
-// Initialize the fixedHuffmanDecoder only once upon first use.
-var fixedOnce sync.Once
-var fixedHuffmanDecoder huffmanDecoder
+var (
+ // Initialize the fixedHuffmanDecoder only once upon first use.
+ fixedOnce sync.Once
+ fixedHuffmanDecoder huffmanDecoder
+)
// A CorruptInputError reports the presence of corrupt input at a given offset.
type CorruptInputError int64