Descriptioninstance: make NewAddresses take a vararg
NewAddresses is almost exclusively used in tests, and almost exclusively called with one argument.
Making NewAddresses use the vararg form makes the callers of the function easier to read and exposes that most callers would use the singular NewAddress form except they usually pass their return value to SetAddresses which itself is not varargs.
Fixing SetAddresses will be the next change.
https://code.launchpad.net/~dave-cheney/juju-core/107-new-addresses-take-varargs/+merge/213208
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 2
|