mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 21:40:29 +00:00
macos: swiftlint 'shorthand_operator' rule
This commit is contained in:
@@ -20,7 +20,6 @@ disabled_rules:
|
||||
- mark
|
||||
- multiple_closures_with_trailing_closure
|
||||
- no_fallthrough_only
|
||||
- shorthand_operator
|
||||
- switch_case_alignment
|
||||
- unused_enumerated
|
||||
- unused_optional_binding
|
||||
|
||||
@@ -108,12 +108,12 @@ struct SplitView<L: View, R: View>: View {
|
||||
var result = CGRect(x: 0, y: 0, width: size.width, height: size.height)
|
||||
switch direction {
|
||||
case .horizontal:
|
||||
result.size.width = result.size.width * split
|
||||
result.size.width *= split
|
||||
result.size.width -= splitterVisibleSize / 2
|
||||
result.size.width -= result.size.width.truncatingRemainder(dividingBy: self.resizeIncrements.width)
|
||||
|
||||
case .vertical:
|
||||
result.size.height = result.size.height * split
|
||||
result.size.height *= split
|
||||
result.size.height -= splitterVisibleSize / 2
|
||||
result.size.height -= result.size.height.truncatingRemainder(dividingBy: self.resizeIncrements.height)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user