Skip to content

Commit 920d338

Browse files
cleanup
1 parent b7bedfb commit 920d338

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cmd/ctrlc/root/apply/deployment.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ func getDirectDeploymentVariableValue(value DirectDeploymentVariableValue) (api.
7979

8080
valueData, err := json.Marshal(value.Value)
8181
if err != nil {
82-
log.Error("Failed to marshal direct value", "error", err)
8382
return api.DirectDeploymentVariableValue{}, err
8483
}
8584
if err := directValue.Value.UnmarshalJSON(valueData); err != nil {
86-
log.Error("Failed to unmarshal direct value", "error", err)
8785
return api.DirectDeploymentVariableValue{}, err
8886
}
8987
return directValue, nil
@@ -101,11 +99,9 @@ func getReferenceDeploymentVariableValue(value ReferenceDeploymentVariableValue)
10199
referenceValue.DefaultValue = &api.ReferenceDeploymentVariableValue_DefaultValue{}
102100
valueData, err := json.Marshal(value.DefaultValue)
103101
if err != nil {
104-
log.Error("Failed to marshal default value", "error", err)
105102
return api.ReferenceDeploymentVariableValue{}, err
106103
}
107104
if err := referenceValue.DefaultValue.UnmarshalJSON(valueData); err != nil {
108-
log.Error("Failed to unmarshal default value", "error", err)
109105
return api.ReferenceDeploymentVariableValue{}, err
110106
}
111107
}

0 commit comments

Comments
 (0)