Ignore empty lines in key files

This commit is contained in:
Robin Kertels 2022-02-04 18:07:02 +01:00 committed by ◱ Mark
parent 0ceecbba4f
commit 2993f65a1c

View File

@ -37,7 +37,7 @@ object KeyReader {
tmpOutputFile.bufferedWriter().use { writer ->
val valid = inputStream!!.bufferedReader().useLines {
for (line in it) {
if (line.startsWith(";")) continue
if (line.startsWith(";") || line.isBlank()) continue
val pair = line.split("=")
if (pair.size != 2)