Skip to content

Commit 8cf8fa2

Browse files
committed
Convert variable to constant
1 parent 0d931ab commit 8cf8fa2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Build/BuildPlan.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ public final class MixedTargetBuildDescription {
14511451
// needed and will later use a VFS overlay to make the generated header
14521452
// appear in the proper location so the bridging header import in the
14531453
// generated interop header can be resolved during the build.
1454-
var generatedUmbrellaHeaderPath: AbsolutePath? = nil
1454+
let generatedUmbrellaHeaderPath: AbsolutePath?
14551455
let relativeUmbrellaHeaderPath =
14561456
RelativePath("\(mixedTarget.c99name)/\(mixedTarget.c99name).h")
14571457
let potentialUmbrellaHeaderPath =
@@ -1481,6 +1481,8 @@ public final class MixedTargetBuildDescription {
14811481
generatedUmbrellaHeaderPath!,
14821482
bytes: stream.bytes
14831483
)
1484+
} else {
1485+
generatedUmbrellaHeaderPath = nil
14841486
}
14851487

14861488
// MARK: Generate products to be used by client of the target.

0 commit comments

Comments
 (0)