From ceee3803f9b1ad3eef8b7abd45dc1327c062738c Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 30 Nov 2021 16:01:44 -0500 Subject: [PATCH] Not a bug when ref is the only variant loaded. refs #18438 Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- slicenumpy.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/slicenumpy.go b/slicenumpy.go index a8fdeb064e..9353488cac 100644 --- a/slicenumpy.go +++ b/slicenumpy.go @@ -374,11 +374,7 @@ func (cmd *sliceNumpy) RunCommand(prog string, args []string, stdin io.Reader, s // mention it in annotations?) continue } - variants, ok := seq[tag] - if !ok { - // how could we even have a reftile if there is no sequence data?? - return fmt.Errorf("bug: have no variants for tag %d but reftile is %+v", tag, rt) - } + variants := seq[tag] reftilestr := strings.ToUpper(string(rt.tiledata)) remap := variantRemap[tag-tagstart] done := make([]bool, len(variants)) -- 2.30.2