From 68bbcee69ba65bce7fd7f69681f6d549c059bb94 Mon Sep 17 00:00:00 2001 From: Tomas Aparicio Date: Tue, 27 Sep 2016 15:57:27 +0100 Subject: [PATCH] fix(lint): fix code style --- resize.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resize.go b/resize.go index 77bfbfc..8d732fb 100644 --- a/resize.go +++ b/resize.go @@ -421,9 +421,8 @@ func imageCalculations(o *Options, inWidth, inHeight int) float64 { func roundFloat(f float64) int { if f < 0 { return int(math.Ceil(f - 0.5)) - } else { - return int(math.Floor(f + 0.5)) } + return int(math.Floor(f + 0.5)) } func calculateCrop(inWidth, inHeight, outWidth, outHeight int, gravity Gravity) (int, int) {