Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 355e947

Browse files
author
weitenghuang
committed
Fix empty environment variable
Fix issue [#381](#381) Signed-off-by: weitenghuang <[email protected]>
1 parent 3c40e10 commit 355e947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (p *Project) CreateService(name string) (Service, error) {
134134

135135
for _, env := range config.Environment {
136136
parts := strings.SplitN(env, "=", 2)
137-
if len(parts) > 1 && parts[1] != "" {
137+
if len(parts) > 1 {
138138
parsedEnv = append(parsedEnv, env)
139139
continue
140140
} else {

0 commit comments

Comments
 (0)