strle, sealing: address review

This commit is contained in:
Łukasz Magiera
2022-08-25 10:19:39 -04:00
parent b8a8648f4a
commit 70f0edd041
2 changed files with 6 additions and 10 deletions
+1 -5
View File
@@ -42,11 +42,7 @@ func HumanRangesToBitField(h string) (bitfield.BitField, error) {
}
}
if start < last {
return bitfield.BitField{}, xerrors.Errorf("run %d start(%d) was less than last run end(%d)", i, start, last)
}
if start == last && last > 0 {
if start <= last && last > 0 {
return bitfield.BitField{}, xerrors.Errorf("run %d start(%d) was equal to last run end(%d)", i, start, last)
}