Use Swift 5.7 if-let style

This commit is contained in:
Arkadiusz Fal
2022-09-28 16:27:01 +02:00
parent 8f96a7c5e0
commit a086a0f440
50 changed files with 114 additions and 114 deletions

View File

@@ -18,7 +18,7 @@ struct AccountValidationStatus: View {
VStack(alignment: .leading) {
Text(isValid ? "Connected successfully (\(app?.name ?? "Unknown"))" : "Connection failed")
if let error = error, !isValid {
if let error, !isValid {
Text(error)
.font(.caption2)
.foregroundColor(.secondary)

View File

@@ -134,7 +134,7 @@ struct InstanceForm: View {
}
func submitForm() {
guard isValid, let app = app else {
guard isValid, let app else {
return
}