From 12141afbada61d03495ef2830732e4d2c406fce4 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 29 May 2023 01:09:33 +0200 Subject: [PATCH] index: Allow inlining of HAT --- internal/index/indexmap.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/index/indexmap.go b/internal/index/indexmap.go index 811d20903..121ed09af 100644 --- a/internal/index/indexmap.go +++ b/internal/index/indexmap.go @@ -1,7 +1,6 @@ package index import ( - "fmt" "hash/maphash" "github.com/restic/restic/internal/restic" @@ -197,7 +196,7 @@ func (h *hashedArrayTree) index(pos uint) (idx uint, subIdx uint) { func (h *hashedArrayTree) Ref(pos uint) *indexEntry { if pos >= h.size { - panic(fmt.Sprintf("array index %d out of bounds %d", pos, h.size)) + panic("array index out of bounds") } idx, subIdx := h.index(pos)