From 0f2e01d6a8e6e83c45f453a532ea1e5dbcd0e4cc Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Sat, 12 Dec 2020 07:23:40 +0100 Subject: [PATCH] Collapse duplicate when --- days/src/main/kotlin/Day12.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/days/src/main/kotlin/Day12.kt b/days/src/main/kotlin/Day12.kt index 2c9e346..ec51f94 100644 --- a/days/src/main/kotlin/Day12.kt +++ b/days/src/main/kotlin/Day12.kt @@ -65,8 +65,6 @@ class Day12(@Lines val input: Input>) { waypointY = waypointX waypointX = -oldY } - } - when (dir) { "F" -> { x += waypointX * steps y += waypointY * steps