mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
naming things is hard
This commit is contained in:
@@ -239,11 +239,11 @@ exp.get_avatar = function(rid, userId, helm, size, callback) {
|
|||||||
if (helm && exists) {
|
if (helm && exists) {
|
||||||
filepath = helmpath;
|
filepath = helmpath;
|
||||||
}
|
}
|
||||||
skins.resize_img(filepath, size, function(img_err, result) {
|
skins.resize_img(filepath, size, function(img_err, image) {
|
||||||
if (img_err) {
|
if (img_err) {
|
||||||
callback(img_err, -1, null, skin_hash);
|
callback(img_err, -1, null, skin_hash);
|
||||||
} else {
|
} else {
|
||||||
callback(err, (err ? -1 : status), result, skin_hash);
|
callback(err, (err ? -1 : status), image, skin_hash);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user