fix: update code style

This commit is contained in:
Antoine Poivey 2023-04-20 16:30:52 +02:00
parent b2d0a44e2f
commit fc6022996a
No known key found for this signature in database
GPG key ID: 6AA1C83421F1A287

View file

@ -228,8 +228,8 @@ func (el *ThemableElement) Render() string {
return out
}
func calculateAxisRadius(borderRadius float64, width float64, height float64) float64 {
var minimumSideSize = math.Min(width, height)
var maximumBorderRadiusValue = minimumSideSize / 2.0
func calculateAxisRadius(borderRadius, width, height float64) float64 {
minimumSideSize := math.Min(width, height)
maximumBorderRadiusValue := minimumSideSize / 2.0
return math.Min(borderRadius, maximumBorderRadiusValue)
}