Skip to content

Commit

Permalink
Merge pull request #116 from articulate/fix/skip-empty-consul-keys
Browse files Browse the repository at this point in the history
fix(consul): skip empty consul keys
  • Loading branch information
mloberg authored Jan 31, 2023
2 parents dece740 + fc4f60a commit c666f88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func (c *Consul) Load(path string) (Dict, error) {
}

for _, p := range pairs {
if p.Value == nil {
continue
}
kv[consulKey(p.Key)] = string(p.Value)
}

Expand Down

0 comments on commit c666f88

Please sign in to comment.