Descriptionstate: Moved function AssignUnit() to method of State.
Detected that AssignUnit() is pure function getting a state
as first argument doesn't follow the style of the state package.
Here we have methods for adding, retrieving or removing entities
as methods of state. This also matches for AssignUnit(), so after
a short discussion moved it to be a method of State.
https://code.launchpad.net/~themue/juju-core/go-state-move-assign-unit/+merge/110302
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : state: Moved function AssignUnit() to method of State. #
MessagesTotal messages: 5
|