Skip to content

Commit

Permalink
Fix ios 16 build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ntunin committed Oct 17, 2022
1 parent db2fd8d commit 1b9a169
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Sources/Maker/Maker+Edges.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ extension Maker {
///
/// - returns: `Maker` instance for chaining relations.
@discardableResult public func edges(top: Number? = nil, left: Number? = nil, bottom: Number? = nil, right: Number? = nil) -> Self {
_ = apply(self.top, top)
_ = apply(self.left, left)
_ = apply(self.bottom, bottom)
_ = apply(self.right, right)
apply(self.top, top)
apply(self.left, left)
apply(self.bottom, bottom)
apply(self.right, right)
return self
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Maker/Maker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public class Maker {
return self
}

func apply(_ f: ((Number) -> Self), _ inset: Number?) {
@discardableResult func apply(_ f: ((Number) -> Self), _ inset: Number?) {
if let inset = inset {
_ = f(inset)
}
Expand Down

0 comments on commit 1b9a169

Please sign in to comment.