mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
fix(lint): fix code style
This commit is contained in:
parent
8d4a850475
commit
68bbcee69b
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue