sync: Allow empty files

This commit is contained in:
nemunaire 2024-10-11 14:55:28 +02:00
parent ac8f704062
commit e08dd2f2e8
2 changed files with 1 additions and 5 deletions

View file

@ -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
}
}