From c320f1de9dd76807d50a1f570160fd6ba94ed091 Mon Sep 17 00:00:00 2001 From: David Mohundro Date: Mon, 6 Nov 2017 12:54:35 -0600 Subject: [PATCH] Fix characters deprecation Fixes #163 --- Source/SWXMLHash+TypeConversion.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SWXMLHash+TypeConversion.swift b/Source/SWXMLHash+TypeConversion.swift index 1a1d23a7..28f12103 100644 --- a/Source/SWXMLHash+TypeConversion.swift +++ b/Source/SWXMLHash+TypeConversion.swift @@ -433,7 +433,7 @@ extension XMLElement { */ internal func nonEmptyTextOrThrow() throws -> String { let textVal = text - if !textVal.characters.isEmpty { + if !textVal.isEmpty { return textVal }