Fix: remove unnecessary reassignments
This commit is contained in:
@@ -60,14 +60,8 @@ export default function releaseBoth (user, req = {}) {
|
||||
giveMountMasterAchievement = false;
|
||||
}
|
||||
|
||||
user.items.pets = {
|
||||
...user.items.pets,
|
||||
[animal]: 0,
|
||||
};
|
||||
user.items.mounts = {
|
||||
...user.items.mounts,
|
||||
[animal]: null,
|
||||
};
|
||||
user.items.pets[animal] = 0;
|
||||
user.items.mounts[animal] = null;
|
||||
}
|
||||
|
||||
if (user.markModified) {
|
||||
|
||||
Reference in New Issue
Block a user