Skip to content

Commit 239ec92

Browse files
committed
Can’t use that shorthand yet
1 parent 6f039f2 commit 239ec92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WebIDLToSwift/WebIDL+SwiftRepresentation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ extension IDLTypedef: SwiftRepresentable {
735735
}
736736

737737
var swiftRepresentation: SwiftSource {
738-
if let unionType {
738+
if let unionType = unionType {
739739
guard unionType.friendlyName != name else { return "" }
740740
if let existingName = unionType.friendlyName {
741741
return "public typealias \(name) = \(existingName)"

0 commit comments

Comments
 (0)