Skip to content

Commit 3702616

Browse files
authored
Merge pull request #26 from vapor/extend-swift-fix
swift compiler crash fix
2 parents ec5f015 + 5da79d3 commit 3702616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Leaf/Tag/Models/Extend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extension Leaf {
3535
return
3636
}
3737

38-
template.parameters.first?.constant.flatMap { importName in
38+
if let importName = template.parameters.first?.constant {
3939
if let exported = exports[importName] {
4040
comps += exported.components.array
4141
} else if let fallback = template.body {

0 commit comments

Comments
 (0)