We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
func _handleParseResult() -> Bool
1 parent 2fe37a2 commit 8314ceeCopy full SHA for 8314cee
Foundation/XMLParser.swift
@@ -465,18 +465,14 @@ open class XMLParser : NSObject {
465
}
466
467
internal func _handleParseResult(_ parseResult: Int32) -> Bool {
468
- var result = true
469
- if parseResult != 0 {
470
- if parseResult != -1 {
471
- // TODO: determine if this result is a fatal error from libxml via the CF implementations
472
- }
473
-
+ if parseResult == 0 {
+ return true
+ } else {
474
if _parserError == nil {
475
_parserError = NSError(domain: XMLParser.errorDomain, code: Int(parseResult))
476
477
- result = false
478
479
- return result
+ return false
480
481
482
internal func parseData(_ data: Data) -> Bool {
0 commit comments