Fixing warnings in Xcode 8.3

This commit is contained in:
Simon Fairbairn 2017-04-01 10:15:58 +02:00
parent e653548441
commit 9fcdddf484
1 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ open class SwiftyMarkdown {
// Get all the characters up to the ones we are interested in
if scanner.scanUpToCharacters(from: instructionSet, into: &string) {
if let hasString = string as? String {
if let hasString = string as String? {
let bodyString = attributedStringFromString(hasString, withStyle: .none)
attributedString.append(bodyString)
@ -265,7 +265,7 @@ open class SwiftyMarkdown {
}
let attributedString = attributedStringFromString(results.escapedCharacters, withStyle: style).mutableCopy() as! NSMutableAttributedString
if let hasString = followingString as? String {
if let hasString = followingString as String? {
let prefix = ( style == .code && start ) ? "\t" : ""
let attString = attributedStringFromString(prefix + hasString, withStyle: style, attributes: attributes)
@ -283,7 +283,7 @@ open class SwiftyMarkdown {
// Scan the ones we are interested in
while scanner.scanCharacters(from: instructionSet, into: &tempCharacters) {
if let chars = tempCharacters as? String {
if let chars = tempCharacters as String? {
matchedCharacters = matchedCharacters + chars
}
}