From dbf004f2ee202244a128c9b5e5278239058ee19e Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Sun, 28 May 2017 19:06:26 +0200 Subject: [PATCH] =?UTF-8?q?(=E2=95=AF=C2=B0=E2=96=A1=C2=B0=EF=BC=89?= =?UTF-8?q?=E2=95=AF=EF=B8=B5=20=E2=94=BB=E2=94=81=E2=94=BB=20gofmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculate_accuracy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculate_accuracy.go b/calculate_accuracy.go index e2aed3b..f8a314a 100644 --- a/calculate_accuracy.go +++ b/calculate_accuracy.go @@ -61,7 +61,7 @@ func calculateAccuracy(count300, count100, count50, countgeki, countkatu, countm case 2: fruits := count300 + count100 + count50 totalFruits := fruits + countmiss + countkatu - if (totalFruits == 0) { + if totalFruits == 0 { accuracy = 1 } else { accuracy = float64(fruits) / float64(totalFruits) -- GitLab