Skip to content

Commit 036100e

Browse files
authored
swiftformat 0.52.6 (#121)
+ форматирование
1 parent 1e7e554 commit 036100e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ rbenv exec fastlane snapshot
7777
- 4.7 дюйма: iPhone SE (3rd generation)
7878

7979
### Форматирование кода
80-
- Используем [swiftformat (0.52.5)](https://github.com/nicklockwood/SwiftFormat) для форматирования кода
80+
- Используем [swiftformat (0.52.6)](https://github.com/nicklockwood/SwiftFormat) для форматирования кода
8181
- Правила форматирования перечислены в файле [.swiftformat](.swiftformat)
8282
- Все правила можно найти [тут](https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md)
8383

SwiftUI-WorkoutApp/DesignSystem/Sources/DesignSystem/SWTextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public extension SWTextField {
5151

5252
var message: String? {
5353
if case let .message(text) = self, !text.isEmpty {
54-
return text
54+
text
5555
} else {
56-
return nil
56+
nil
5757
}
5858
}
5959
}

SwiftUI-WorkoutApp/Services/DeviceOSVersionChecker.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ enum DeviceOSVersionChecker {
1212
/// До iOS 16 `ScrollView` не поддерживает `refreshable`
1313
static var iOS16Available: Bool {
1414
if #available(iOS 16, *) {
15-
return true
15+
true
1616
} else {
17-
return false
17+
false
1818
}
1919
}
2020
}

SwiftUI-WorkoutApp/Utils/Sources/Utils/Data+.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ public extension Data {
55
if let object = try? JSONSerialization.jsonObject(with: self, options: [.fragmentsAllowed]),
66
let jsonData = try? JSONSerialization.data(withJSONObject: object, options: .prettyPrinted),
77
let json = String(data: jsonData, encoding: .utf8) {
8-
return json
8+
json
99
} else {
10-
return ""
10+
""
1111
}
1212
}
1313

swiftformat

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)