Repository: CodeEditApp/CodeEdit
File: CodeEdit/NavigatorSidebar/FindNavigator/FindNavigatorResultFileItem.swift (Swift)

Code before:
    private var state: WorkspaceDocument.SearchState
    @StateObject
    private var prefs: AppPreferencesModel = .shared

    @State
    private var isExpanded: Bool = true

    private var fileItem: WorkspaceClient.FileItem
    private var results: [SearchResultModel]
    private var jumpToFile: () -> Void

    init(state: WorkspaceDocument.SearchState,
         isExpanded: Bool = true,
         fileItem: WorkspaceClient.FileItem,
         results: [SearchResultModel],
         jumpToFile: @escaping () -> Void) {
             self.state = state
             self.isExpanded = isExpanded
             self.fileItem = fileItem
             self.results = results
             self.jumpToFile = jumpToFile
    }

    @ViewBuilder
    private func foundLineResult(_ lineContent: String?, keywordRange: Range<String.Index>?) -> some View {
        if let lineContent = lineContent, let keywordRange = keywordRange {
            Text(lineContent[lineContent.startIndex..<keywordRange.lowerBound]) +
            Text(lineContent[keywordRange.lowerBound..<keywordRange.upperBound])
                .foregroundColor(.white)
                .font(.system(size: 12, weight: .bold)) +
            Text(lineContent[keywordRange.upperBound..<lineContent.endIndex])
        }
    }

    var body: some View {
        DisclosureGroup(isExpanded: $isExpanded) {
            ForEach(results, id: \.lineContent) { (result: SearchResultModel) in
                HStack(alignment: .top, spacing: 4) {
                    Image(systemName: "text.alignleft")
                        .font(.system(size: 12))
                        .padding(.top, 2)
                    foundLineResult(result.lineContent, keywordRange: result.keywordRange)
                        .lineLimit(prefs.preferences.general.findNavigatorDetail.rawValue)
                        .foregroundColor(Color(nsColor: .secondaryLabelColor))
                        .font(.system(size: 12, weight: .light))
                    Spacer()
                }
            }
        } label: {
            HStack {
                Image(systemName: fileItem.systemImage)

Review comment (suggestion):
Please add a line break for multiple if let statements:

```swift
if let lineContent = lineContent, 
   let keywordRange = keywordRange {
    ...
}
```

Code after:
    private var state: WorkspaceDocument.SearchState
    @StateObject
    private var prefs: AppPreferencesModel = .shared

    @State
    private var isExpanded: Bool = true

    private var fileItem: WorkspaceClient.FileItem
    private var results: [SearchResultModel]
    private var jumpToFile: () -> Void

    init(state: WorkspaceDocument.SearchState,
         isExpanded: Bool = true,
         fileItem: WorkspaceClient.FileItem,
         results: [SearchResultModel],
         jumpToFile: @escaping () -> Void) {
             self.state = state
             self.isExpanded = isExpanded
             self.fileItem = fileItem
             self.results = results
             self.jumpToFile = jumpToFile
    }

    @ViewBuilder
    private func foundLineResult(_ lineContent: String?, keywordRange: Range<String.Index>?) -> some View {
        if let lineContent = lineContent,
           let keywordRange = keywordRange {
            Text(lineContent[lineContent.startIndex..<keywordRange.lowerBound]) +
            Text(lineContent[keywordRange.lowerBound..<keywordRange.upperBound])
                .foregroundColor(.white)
                .font(.system(size: 12, weight: .bold)) +
            Text(lineContent[keywordRange.upperBound..<lineContent.endIndex])
        }
    }

    var body: some View {
        DisclosureGroup(isExpanded: $isExpanded) {
            ForEach(results, id: \.lineContent) { (result: SearchResultModel) in
                HStack(alignment: .top, spacing: 4) {
                    Image(systemName: "text.alignleft")
                        .font(.system(size: 12))
                        .padding(.top, 2)
                    foundLineResult(result.lineContent, keywordRange: result.keywordRange)
                        .lineLimit(prefs.preferences.general.findNavigatorDetail.rawValue)
                        .foregroundColor(Color(nsColor: .secondaryLabelColor))
                        .font(.system(size: 12, weight: .light))
                    Spacer()
                }
            }
        } label: {
            HStack {