Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Allow empty strings for Noms values specified in CLI
Browse files Browse the repository at this point in the history
Fixes #3831
  • Loading branch information
aboodman committed Apr 4, 2019
1 parent 4229bd1 commit 84e9c51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/noms/noms_set.go
Expand Up @@ -103,8 +103,9 @@ func applySetEdits(sp spec.Spec, rootVal types.Value, basePath types.Path, ct ty
}

func argumentToValue(arg string, db datas.Database) (types.Value, error) {
d.PanicIfTrue(arg == "")

if arg == "" {
return types.String(""), nil
}
if arg == "true" {
return types.Bool(true), nil
}
Expand Down

0 comments on commit 84e9c51

Please sign in to comment.