Skip to content

Commit ffb0b94

Browse files
committed
WIP
1 parent 2a60174 commit ffb0b94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/templatevariables.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ import (
1010
)
1111

1212
func loadVariableValues(variablesFile string) ([]codersdk.VariableValue, error) {
13+
var values []codersdk.VariableValue
14+
if variablesFile == "" {
15+
return values, nil
16+
}
17+
1318
variablesMap, err := createVariablesMapFromFile(variablesFile)
1419
if err != nil {
1520
return nil, err
1621
}
1722

18-
var values []codersdk.VariableValue
1923
for name, value := range variablesMap {
2024
values = append(values, codersdk.VariableValue{
2125
Name: name,

0 commit comments

Comments
 (0)