From 46ab4b200ea16167842a814308bcd3160a62f1e8 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Sat, 9 Feb 2019 22:12:55 +1030 Subject: [PATCH] exp/ts-repair: fix assignment --- experimentation/ts-repair/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/experimentation/ts-repair/main.go b/experimentation/ts-repair/main.go index bed81f19..97c350f6 100644 --- a/experimentation/ts-repair/main.go +++ b/experimentation/ts-repair/main.go @@ -209,10 +209,7 @@ func main() { packetNo++ // Get the pid from the packet - pid, err := packet.Pid((*packet.Packet)(&p)) - if err != nil { - panic(errCantGetPid) - } + pid := packet.Pid((*packet.Packet)(&p)) // Get the cc from the packet and also the expected cc (if exists) cc := p.CC()