Skip to content

Commit 9ee2b09

Browse files
committed
Encode options instead of using unkeyed container
1 parent aa9b0a0 commit 9ee2b09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/WebView/YouTubePlayerWebView+HTML.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ extension YouTubePlayerWebView.HTML {
9999
func encode(
100100
to encoder: Encoder
101101
) throws {
102-
var container = encoder.unkeyedContainer()
103-
try container.encode(
104-
self.options,
102+
try self.options.encode(
103+
to: encoder,
105104
configuration: self.encodingConfiguration
106105
)
107106
}

0 commit comments

Comments
 (0)