From fc6022996a64b6bcdc43aa20156bfd795b97325c Mon Sep 17 00:00:00 2001 From: Antoine Poivey Date: Thu, 20 Apr 2023 16:30:52 +0200 Subject: [PATCH] fix: update code style --- d2themes/element.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/d2themes/element.go b/d2themes/element.go index 344525d5c..2bc52c57e 100644 --- a/d2themes/element.go +++ b/d2themes/element.go @@ -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) }