Windows fixes

This commit is contained in:
AlexSSD7 2023-09-03 14:08:24 +01:00
commit 1b69e6294d
7 changed files with 30 additions and 20 deletions

View file

@ -69,11 +69,6 @@ func NewKeyValueArg(key string, items []KeyValueArgItem) (*KeyValueArg, error) {
return nil, fmt.Errorf("empty key not allowed")
}
if len(item.Value) == 0 {
// Values *can* be empty, though. We do not allow them for consistency.
return nil, fmt.Errorf("empty value for key '%v' is not allowed", item.Key)
}
err := validateArgStrValue(item.Key)
if err != nil {
return nil, errors.Wrapf(err, "validate key '%v'", item.Key)