minor refactor
This commit is contained in:
@@ -34,12 +34,7 @@ func (c Controller) UpdateRelation(actor, acceptor string, rel game.Relation) er
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
var other int
|
||||
if actor == acceptor {
|
||||
other = ri
|
||||
} else if other, err = c.Cache.validRace(acceptor); err != nil {
|
||||
return err
|
||||
}
|
||||
other, err := c.Cache.validRace(acceptor)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user