Browse Source

Correction

Piotr Czajkowski 4 months ago
parent
commit
c6fd8a73e8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      22/code.go

+ 1 - 2
22/code.go

@@ -106,8 +106,7 @@ func part1(objects []Object) int {
 
 func countFallen(object *Object, fallen map[*Object]bool) int {
 	var count int
-	ok, _ := fallen[object]
-	if !ok {
+	if !fallen[object] {
 		fallen[object] = true
 		count++
 	}