Skip to content

Commit

Permalink
PreferencesEditorDataFlow: commit Xcode auto formatting related to ni…
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornoleh committed Jun 8, 2024
1 parent 8e9ced6 commit 55d64a6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ enum PreferencesEditor {
settable?.set(keypath, value: value)
case let (.decimal(keypath, minVal, maxVal), value as Decimal):
let constrainedValue: Decimal
if let minValue = minVal, let minValueDecimal: Decimal = settable?.get(minValue), let maxValue = maxVal, let maxValueDecimal: Decimal = settable?.get(maxValue) {
if let minValue = minVal, let minValueDecimal: Decimal = settable?.get(minValue), let maxValue = maxVal,
let maxValueDecimal: Decimal = settable?.get(maxValue)
{
constrainedValue = min(max(value, minValueDecimal), maxValueDecimal)
} else if let minValue = minVal, let minValueDecimal: Decimal = settable?.get(minValue) {
constrainedValue = max(value, minValueDecimal)
Expand Down

0 comments on commit 55d64a6

Please sign in to comment.