Simplify let binding in `TerminalView` title logic

pull/4804/head
Bryan Lee 2025-01-08 21:01:01 +08:00
parent 0651586339
commit ea7c54d79d
No known key found for this signature in database
GPG Key ID: AA996124D88BE937
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ struct TerminalView<ViewModel: TerminalViewModel>: View {
// The title for our window // The title for our window
private var title: String { private var title: String {
if let surfaceTitle = surfaceTitle, !surfaceTitle.isEmpty { if let surfaceTitle, !surfaceTitle.isEmpty {
return surfaceTitle return surfaceTitle
} }
return "👻" return "👻"