Skip to content

Commit 25d8d76

Browse files
committed
🚨 swiftlint
1 parent a1ca100 commit 25d8d76

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

CodeEdit/Features/NavigatorArea/ProjectNavigator/OutlineView/ProjectNavigatorViewController.swift

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
281281
}
282282

283283
func outlineViewSelectionDidChange(_ notification: Notification) {
284-
guard let outlineView = notification.object as? NSOutlineView else {
285-
return
286-
}
284+
guard let outlineView = notification.object as? NSOutlineView else { return }
287285

288286
let selectedIndex = outlineView.selectedRow
289287

@@ -304,13 +302,9 @@ extension ProjectNavigatorViewController: NSOutlineViewDelegate {
304302
guard
305303
let id = workspace?.editorManager.activeEditor.selectedTab?.file.id,
306304
let item = workspace?.workspaceFileManager?.getFile(id, createIfNotFound: true)
307-
else {
308-
return
309-
}
305+
else { return }
310306
/// update outline selection only if the parent of selected item match with expanded item
311-
guard item.parent === notification.userInfo?["NSObject"] as? CEWorkspaceFile else {
312-
return
313-
}
307+
guard item.parent === notification.userInfo?["NSObject"] as? CEWorkspaceFile else { return }
314308
/// select active file under collapsed folder only if its parent is expanding
315309
if outlineView.isItemExpanded(item.parent) {
316310
updateSelection(itemID: item.id)

0 commit comments

Comments
 (0)