mirror of
https://github.com/restic/restic.git
synced 2025-04-24 19:01:37 +00:00
parent
4a51ddf741
commit
31ff506309
@ -304,7 +304,11 @@ func readLinesFromFile(filename string) ([]string, error) {
|
|||||||
|
|
||||||
scanner := bufio.NewScanner(r)
|
scanner := bufio.NewScanner(r)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
lines = append(lines, scanner.Text())
|
line := scanner.Text()
|
||||||
|
if line == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
lines = append(lines, line)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := scanner.Err(); err != nil {
|
if err := scanner.Err(); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user