Skip to content

Commit

Permalink
Fix ProcessCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
gentee committed Mar 4, 2022
1 parent 6ac0ecf commit e3ebff1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions script/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ func ProcessCmd(taskid uint32, r io.Reader) (ret *CmdData, err error) {
if err = dec.Decode(ret); err == nil {
if ret.TaskID != taskid {
err = fmt.Errorf(`wrong task %d != %d in ProcessCmd`, taskid, ret.TaskID)
} else if len(ret.Error) > 0 {
err = fmt.Errorf(ret.Error)
}
}
return
Expand Down

0 comments on commit e3ebff1

Please sign in to comment.