Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 67642a0

Browse files
committed
- Updated guard let syntax
1 parent 731e269 commit 67642a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Sources/UIKitComponents/Extensions/Priorities.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension NSLayoutDimension {
3232
}
3333

3434
open func constraint(equalToOptionalConstant constant: CGFloat?) -> NSLayoutConstraint? {
35-
guard let constant = constant else { return nil }
35+
guard let constant else { return nil }
3636
return constraint(equalToConstant: constant)
3737
}
3838
}

Diff for: UIKitComponentsExample/UIKitComponentsExample/Views/Main/CollectionView/Cells/MainCell.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MainCell: UICollectionViewCell {
2929

3030
var item: ExampleItem? {
3131
didSet {
32-
guard let item = item else { return }
32+
guard let item else { return }
3333
titleLabel.text = item.title
3434
}
3535
}

0 commit comments

Comments
 (0)