os/osutil/osutil.go
Function AbsFilepath
has 6 return statements (exceeds 4 allowed). Open
Open
func AbsFilepath(path string) (string, error) {
path = strings.TrimSpace(path)
if len(path) == 0 {
return path, nil
} else if filepath.IsAbs(path) {
Function CreateFileWithLines
has 5 return statements (exceeds 4 allowed). Open
Open
func CreateFileWithLines(filename string, lines []string, lineSuffix string, useBuffer bool) error {
f, err := os.Create(filename)
if err != nil {
return err
}