Skip to content

Commit

Permalink
simplify confidence
Browse files Browse the repository at this point in the history
  • Loading branch information
xorkevin committed Jul 22, 2017
1 parent 9810ab7 commit 8c8017e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions util/score/score.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ func Confidence(ups, downs int32) int64 {
return -int64(downs)
}

if ups+downs == 0 {
return 0
}
u := float64(ups)
d := float64(downs)
n := u + d
Expand Down

0 comments on commit 8c8017e

Please sign in to comment.