diff --git a/day02.kts b/day02.kts index e1777d0..a8ae109 100755 --- a/day02.kts +++ b/day02.kts @@ -8,9 +8,6 @@ var safelines = 0 var dampenedsafelines = 0 while (scanner.hasNextLine()) { val line = scanner.nextLine() - if (line.isEmpty()) { - continue - } val numbers = line.split(" ").map { it.toInt() } if (isSafe(numbers)) { safelines++ diff --git a/day04.kts b/day04.kts index 3045731..8de2ece 100755 --- a/day04.kts +++ b/day04.kts @@ -17,9 +17,6 @@ val xMasSearchOffsets = listOf( var ycoordinates = mutableListOf>() while (scanner.hasNextLine()) { val line = scanner.nextLine() - if (line.isEmpty()) { - continue - } val xcoordinates = line.split("").filter { it.isNotEmpty() } ycoordinates.add(xcoordinates) }