From cb44439f1c45b57f45d49d82672cd9367b64138e Mon Sep 17 00:00:00 2001 From: Stefan Wichmann Date: Sun, 13 Feb 2022 13:22:45 +0100 Subject: [PATCH] go fmt --- util.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util.go b/util.go index 93d2f86..8dd084d 100644 --- a/util.go +++ b/util.go @@ -74,12 +74,12 @@ func equalsFloat(a []float32, b []float32, maxDiff float32) bool { return false } for index := 0; index < len(a); index++ { - if maxDiff == 0 { - // Special case to prevent 'rounded' from becoming NaN + if maxDiff == 0 { + // Special case to prevent 'rounded' from becoming NaN // below and therefore 'rounded > maxDiff' always being // false. - if a[index] != b[index] { - return false + if a[index] != b[index] { + return false } continue }