Skip to content

Commit ecef652

Browse files
committed
Fix bug: encoding emptry string.
1 parent 7c886de commit ecef652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/BuildEnvGenerator/BuildEnvGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct BuildEnvGenerator {
118118
119119
"""
120120
for (key, value) in envDict {
121-
if config.encode {
121+
if config.encode && !value.isEmpty {
122122
content += encodedCode(key: key, value: value, config: config)
123123
} else {
124124
content += " \(config.access.string)static let \(key): String = \"\(value)\"\n"

0 commit comments

Comments
 (0)