mirror of
https://git.um-react.app/um/cli.git
synced 2026-11-28 16:16:59 +00:00
Clean TODOs
This commit is contained in:
3 files changed
+5
-6
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user