src/go/plugin/go.d/pkg/logs/reader.go
Method Reader.open
has 5 return statements (exceeds 4 allowed). Open
Open
func (r *Reader) open() error {
path := r.findFile()
if path == "" {
r.log.Debugf("couldn't find log file, used path: '%s', exclude_path: '%s'", r.path, r.excludePath)
return ErrNoMatchedFile
Function Open
has 5 return statements (exceeds 4 allowed). Open
Open
func Open(path string, excludePath string, log *logger.Logger) (*Reader, error) {
var err error
if path, err = filepath.Abs(path); err != nil {
return nil, err
}