Skip to content

Commit

Permalink
Fix faulty guard
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed Dec 21, 2016
1 parent ef1cfab commit 6a6d1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Mac/Extensions/Gridable+Extensions+Mac.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ extension Gridable {
public func refreshHeight(_ completion: (() -> Void)? = nil) {
Dispatch.delay(for: 0.2) { [weak self] in
guard let weakSelf = self, let collectionView = self?.collectionView else {
return
completion?()
return
}

weakSelf.setup(CGSize(width: collectionView.frame.width, height: weakSelf.computedHeight ))
Expand Down

0 comments on commit 6a6d1d8

Please sign in to comment.