Don't wrap error unnecessarily.

This commit is contained in:
scruzin 2019-07-11 14:57:47 +09:30
parent b1e5890554
commit 4b57407e36
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func IndexPid(d []byte, pids ...uint16) (idx int, m map[string]string, err error
continue
}
if i != prev+PacketSize {
err = errors.Wrap(err, "PIDs not consecutive")
err = errors.New("PIDs not consecutive")
return
}
prev = i