refactor: remove redundant current relation override
This commit is contained in:
@@ -176,9 +176,6 @@ func (c *Client) GetFullRelations(ctx context.Context, id int) ([]RelationEntry,
|
|||||||
IsCurrent: res.entry.ID == id,
|
IsCurrent: res.entry.ID == id,
|
||||||
IsExtra: false,
|
IsExtra: false,
|
||||||
})
|
})
|
||||||
if res.entry.ID == id {
|
|
||||||
relations[len(relations)-1].Relation = "Current"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if !seen[id] {
|
if !seen[id] {
|
||||||
|
|||||||
Reference in New Issue
Block a user