Remove spurious else.
authorTom Clegg <tom@tomclegg.ca>
Thu, 30 Jan 2020 23:05:10 +0000 (18:05 -0500)
committerTom Clegg <tom@tomclegg.ca>
Thu, 30 Jan 2020 23:05:10 +0000 (18:05 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

taglib.go

index 0de37089a791d1914ce560717dfe950fc156e0c4..3dc45b80c08d67772cd4d6930fecf052bc44fce9 100644 (file)
--- a/taglib.go
+++ b/taglib.go
@@ -47,10 +47,10 @@ func (taglib *tagLibrary) FindAll(buf []byte, fn func(id tagID, pos, taglen int)
                if !isbase[int(base)] {
                        valid = 0
                        continue
-               } else {
-                       valid++
                }
                key = ((key << 2) | twobit[int(base)]) & taglib.keymask
+               valid++
+
                if valid < taglib.keylen {
                        continue
                } else if taginfo, ok := taglib.tagmap[key]; !ok {