Skip to content

Commit 3bf0ac3

Browse files
committed
Fix swiftlint warnings
1 parent 121d307 commit 3bf0ac3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/YogaKit/YGLayoutExtensions.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88
postfix operator %
99

1010
extension Int {
11-
public static postfix func %(value: Int) -> YGValue {
11+
public static postfix func % (value: Int) -> YGValue {
1212
return YGValue(value: Float(value), unit: .percent)
1313
}
1414
}
1515

1616
extension Float {
17-
public static postfix func %(value: Float) -> YGValue {
17+
public static postfix func % (value: Float) -> YGValue {
1818
return YGValue(value: value, unit: .percent)
1919
}
2020
}
2121

2222
extension CGFloat {
23-
public static postfix func %(value: CGFloat) -> YGValue {
23+
public static postfix func % (value: CGFloat) -> YGValue {
2424
return YGValue(value: Float(value), unit: .percent)
2525
}
2626
}
2727

28-
extension YGValue : ExpressibleByIntegerLiteral, ExpressibleByFloatLiteral {
28+
extension YGValue: ExpressibleByIntegerLiteral, ExpressibleByFloatLiteral {
2929
public init(integerLiteral value: Int) {
3030
self = YGValue(value: Float(value), unit: .point)
3131
}

0 commit comments

Comments
 (0)