Skip to content

Commit 9be31ff

Browse files
committed
Remove redundant if statement
1 parent 8d87858 commit 9be31ff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

devdocs-macos/DocumentationViewController.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,7 @@ class DocumentationViewController: NSViewController {
167167
}
168168
}
169169

170-
if let doc = args["doc"] as! String? {
171-
self.documentCategory = doc
172-
} else {
173-
self.documentCategory = nil
174-
}
170+
self.documentCategory = args["doc"] as! String?
175171
}
176172

177173
private func handleLocationNotification(_ args: [AnyHashable: Any]) {

0 commit comments

Comments
 (0)