规范性改动

This commit is contained in:
mask-pp
2020-09-04 10:40:21 +08:00
parent 08fc7317a5
commit e8de877eeb
3 changed files with 2 additions and 4 deletions

View File

@@ -574,5 +574,4 @@ func (s *MpegTsStream) Feed(ts io.Reader) error {
} }
} }
} }
return nil
} }

View File

@@ -2,9 +2,10 @@ package pio
import ( import (
"fmt" "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}} vec := [][]byte{[]byte{1, 2, 3}, []byte{4, 5, 6, 7, 8, 9}, []byte{10, 11, 12, 13}}
println(VecLen(vec)) println(VecLen(vec))

View File

@@ -37,8 +37,6 @@ func ReadFileLines(filename string) (lines []string, err error) {
lines = append(lines, string(line)) lines = append(lines, string(line))
} }
return
} }
func CurrentDir(path ...string) string { func CurrentDir(path ...string) string {