Skip to content

Commit ba3439e

Browse files
committed
Removed unnecessary duplicate XMLHeader.init
Set defaults for params of XMLHeader.init Made XMLHeader.init public for use outside of module.
1 parent 8c760e9 commit ba3439e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Sources/XMLCoding/XMLStackParser.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ public struct XMLHeader {
2424
/// indicates whetehr a document relies on information from an external source.
2525
var standalone: String? = nil
2626

27-
init(version: Double? = nil) {
28-
self.version = version
29-
}
30-
31-
init(version: Double?, encoding: String?, standalone: String? = nil) {
27+
public init(version: Double? = nil, encoding: String? = nil, standalone: String? = nil) {
3228
self.version = version
3329
self.encoding = encoding
3430
self.standalone = standalone

0 commit comments

Comments
 (0)