Not a bug when ref is the only variant loaded.
authorTom Clegg <tom@curii.com>
Tue, 30 Nov 2021 21:01:44 +0000 (16:01 -0500)
committerTom Clegg <tom@curii.com>
Tue, 30 Nov 2021 21:01:44 +0000 (16:01 -0500)
refs #18438

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

slicenumpy.go

index a8fdeb064eefa682437b0558958785b003ed81fc..9353488cac8cb7ab080ba0ab9b4db3b23aea8376 100644 (file)
@@ -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))