Skip to content

Commit 72a6a32

Browse files
author
Andris
committed
Use just one guard instead of 2 (in example project’s vc)
1 parent 3278db2 commit 72a6a32

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

graphview_example_ib/GraphView/GraphViewController.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ class GraphViewController: UIViewController {
1313
override func viewDidLoad() {
1414
super.viewDidLoad()
1515

16-
guard let data = data else {
17-
return
18-
}
19-
guard let labels = labels else {
16+
guard let data = data, let labels = labels else {
2017
return
2118
}
2219
graphView?.setData(data, withLabels: labels)

0 commit comments

Comments
 (0)