Use pointer receiver more offen
This commit is contained in:
parent
6999b4e728
commit
c7569b5e54
59 changed files with 688 additions and 672 deletions
|
@ -129,6 +129,10 @@ func getFileContent(i Importer, URI string) (string, error) {
|
|||
buf = append(buf, b)
|
||||
}
|
||||
|
||||
if len(buf) == 0 {
|
||||
return "", fmt.Errorf("File is empty")
|
||||
}
|
||||
|
||||
return strings.TrimSpace(string(buf)), nil
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue