mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Use Swift 5.7 if-let style
This commit is contained in:
@@ -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)
|
||||
|
@@ -134,7 +134,7 @@ struct InstanceForm: View {
|
||||
}
|
||||
|
||||
func submitForm() {
|
||||
guard isValid, let app = app else {
|
||||
guard isValid, let app else {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user