Fix golanglint missing error check
This commit is contained in:
parent
a0e04b7e3a
commit
7be0f83c5e
1 changed files with 4 additions and 1 deletions
|
@ -385,7 +385,10 @@ func (w *World) RoverTransfer(rover string) (string, error) {
|
||||||
newRover.AddLogEntryf("transferred from rover %s", oldRover.Name)
|
newRover.AddLogEntryf("transferred from rover %s", oldRover.Name)
|
||||||
|
|
||||||
// Transfer the ownership
|
// Transfer the ownership
|
||||||
w.Accountant.AssignData(oldRover.Owner, "rover", newRover.Name)
|
err = w.Accountant.AssignData(oldRover.Owner, "rover", newRover.Name)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
newRover.Owner = oldRover.Owner
|
newRover.Owner = oldRover.Owner
|
||||||
oldRover.Owner = ""
|
oldRover.Owner = ""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue