From 76198ada5d6f1074b484bde6a275fa2ae4b51262 Mon Sep 17 00:00:00 2001 From: Carlo Strub Date: Wed, 19 Apr 2017 07:49:06 +0000 Subject: [PATCH] typo --- bayesian.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bayesian.go b/bayesian.go index a4568ef..0466eb6 100644 --- a/bayesian.go +++ b/bayesian.go @@ -47,7 +47,7 @@ func classificationWordProb(db *bolt.DB, word string) (g, j float64) { p := tx.Bucket([]byte("Processed")) counters := p.Bucket([]byte("Counters")) jString := string(counters.Get([]byte("Junk"))) - j, _ := strconv.ParseFloat(jString, 64) + j, _ = strconv.ParseFloat(jString, 64) mails := p.Bucket([]byte("Mails")) pN := mails.Stats().KeyN