sync: Allow empty files
This commit is contained in:
parent
ac8f704062
commit
e08dd2f2e8
2 changed files with 1 additions and 5 deletions
|
@ -172,10 +172,6 @@ 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