Skip to content

Commit

Permalink
Ignore empty CDP address value
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex authored and Владимир Фетисов committed Apr 10, 2019
1 parent 988bfae commit e7e8b75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/drivers/cdp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ func newOptions(setters []Option) *Options {

func WithAddress(address string) Option {
return func(opts *Options) {
opts.address = address
if address != "" {
opts.address = address
}
}
}

Expand Down

0 comments on commit e7e8b75

Please sign in to comment.