Browse Source

Correction

Piotr Czajkowski 1 năm trước cách đây
mục cha
commit
c6fd8a73e8
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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++
 	}