From 3529f7e415d53b4fa053f255d77d74db91a83f6a Mon Sep 17 00:00:00 2001 From: aria Date: Sun, 15 Jun 2025 02:57:54 +1000 Subject: [PATCH] refactor: remove pointless else statments --- main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 7d38d68..76171f1 100644 --- a/main.go +++ b/main.go @@ -173,9 +173,10 @@ func isDiffUInt8(x, y uint8) bool { sq := d * d if sq > 0 { return true - } else { - return false } + + return false + } func isDiffUInt8WithTolerance(x, y uint8, tolerance uint64) bool { @@ -183,9 +184,10 @@ func isDiffUInt8WithTolerance(x, y uint8, tolerance uint64) bool { sq := d * d if sq > tolerance { return true - } else { - return false } + + return false + } func countUniqueVideoFrames(video_path1 string, video_path2 string, min_diff uint64, use_sq_diff bool) error {