diff --git a/avformat/mpegts/mpegts.go b/avformat/mpegts/mpegts.go index d44ee1f..63c5a8e 100644 --- a/avformat/mpegts/mpegts.go +++ b/avformat/mpegts/mpegts.go @@ -574,5 +574,4 @@ func (s *MpegTsStream) Feed(ts io.Reader) error { } } } - return nil } diff --git a/util/bits/pio/vec_test.go b/util/bits/pio/vec_test.go index 8c43769..b435466 100644 --- a/util/bits/pio/vec_test.go +++ b/util/bits/pio/vec_test.go @@ -2,9 +2,10 @@ package pio import ( "fmt" + "testing" ) -func ExampleVec() { +func TestExampleVec(t *testing.T) { vec := [][]byte{[]byte{1, 2, 3}, []byte{4, 5, 6, 7, 8, 9}, []byte{10, 11, 12, 13}} println(VecLen(vec)) diff --git a/util/util.go b/util/util.go index 7ac63d6..2f383ca 100644 --- a/util/util.go +++ b/util/util.go @@ -37,8 +37,6 @@ func ReadFileLines(filename string) (lines []string, err error) { lines = append(lines, string(line)) } - - return } func CurrentDir(path ...string) string {