Skip to content

Commit

Permalink
Silence warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Maccharoli authored and Nicholas Maccharoli committed Feb 9, 2019
1 parent e6ecc30 commit 3bc20e6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Attributed/Attributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.


import Foundation

public struct Attributes {
Expand Down Expand Up @@ -49,9 +48,7 @@ public struct Attributes {
}

public func strikeThroughStyle(_ strikeThroughStyle: NSUnderlineStyle) -> Attributes {
return self + Attributes(dictionary: [NSAttributedString.Key.strikethroughStyle: strikeThroughStyle.rawValue,
NSAttributedString.Key.baselineOffset : NSNumber(floatLiteral: 1.5),
])
return self + Attributes(dictionary: [NSAttributedString.Key.strikethroughStyle: strikeThroughStyle.rawValue, NSAttributedString.Key.baselineOffset : NSNumber(floatLiteral: 1.5)])
}

public func underlineStyle(_ underlineStyle: NSUnderlineStyle) -> Attributes {
Expand Down

0 comments on commit 3bc20e6

Please sign in to comment.