Clean TODOs

This commit is contained in:
Emmm Monster
2021-05-23 19:58:23 +08:00
parent ad301e0ff2
commit c836ac7cb5
3 changed files with 5 additions and 6 deletions

View File

@@ -61,7 +61,6 @@ func (d *Decoder) Validate() error {
return nil
}
//todo: 读取前进行检查长度,防止越界
func (d *Decoder) readKeyData() error {
if d.offsetKey == 0 || d.offsetKey+4 > d.fileLen {
return errors.New("invalid cover file offset")