minor refactor

This commit is contained in:
Ilia Denisov
2026-02-08 15:47:59 +02:00
parent 175fb98c3a
commit bf34843568
6 changed files with 28 additions and 21 deletions
+1 -6
View File
@@ -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
}