Piotr Czajkowski 1 年間 前
コミット
c6fd8a73e8
1 ファイル変更1 行追加2 行削除
  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++
 	}