Not a bug when ref is the only variant loaded.
[lightning.git] / 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))