Skip to content

Commit 2b0507e

Browse files
committed
Do not return empty lines in readFilesList
1 parent 0e1be26 commit 2b0507e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LocMapper CLI/Commands/UpdateXcodeStringsFromCode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ struct UpdateXcodeStringsFromCode : ParsableCommand {
381381
var res = [String]()
382382
let content = try String(contentsOf: url)
383383
content.enumerateLines{ line, stop in
384-
guard !line.hasPrefix("#") else {return}
384+
guard !line.hasPrefix("#"), !line.isEmpty else {return}
385385
res.append(line)
386386
}
387387
return res

0 commit comments

Comments
 (0)