Skip to content

Commit

Permalink
Simplify by removing conditional, always use CalculateMultiYear
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisreddington authored Dec 1, 2024
1 parent ffd5549 commit 58d8920
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions stl/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,7 @@ func calculateDimensions(yearCount int) (modelDimensions, error) {
}

var width, depth float64

if yearCount <= 1 {
width, depth = geometry.CalculateMultiYearDimensions(1)
} else {
// Multi-year case: use the multi-year calculation
width, depth = geometry.CalculateMultiYearDimensions(yearCount)
}
width, depth = geometry.CalculateMultiYearDimensions(yearCount)

dims := modelDimensions{
innerWidth: width,
Expand Down

0 comments on commit 58d8920

Please sign in to comment.