src/go/plugin/go.d/pkg/logs/lastline.go
Function ReadLastLine
has 6 return statements (exceeds 4 allowed). Open
Open
func ReadLastLine(filename string, maxLineWidth int64) ([]byte, error) {
if maxLineWidth <= 0 {
maxLineWidth = DefaultMaxLineWidth
}
f, err := os.Open(filename)