mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
undersore instead of camelcase
This commit is contained in:
parent
f24160c5f2
commit
eebac0f27c
@ -120,7 +120,7 @@ function array_has_hash(arr, property, value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function store_images(uuid, details, type, callback) {
|
function store_images(uuid, details, type, callback) {
|
||||||
var isUUID = uuid.length > 16;
|
var is_uuid = uuid.length > 16;
|
||||||
var new_hash = {
|
var new_hash = {
|
||||||
uuid: uuid,
|
uuid: uuid,
|
||||||
type: type,
|
type: type,
|
||||||
@ -128,8 +128,8 @@ function store_images(uuid, details, type, callback) {
|
|||||||
};
|
};
|
||||||
if (!array_has_hash(currently_running, "uuid", uuid)) {
|
if (!array_has_hash(currently_running, "uuid", uuid)) {
|
||||||
currently_running.push(new_hash);
|
currently_running.push(new_hash);
|
||||||
networking.get_profile((isUUID ? uuid : null), function(err, profile) {
|
networking.get_profile((is_uuid ? uuid : null), function(err, profile) {
|
||||||
if (err || (isUUID && !profile)) {
|
if (err || (is_uuid && !profile)) {
|
||||||
callback_for(uuid, type, err, null);
|
callback_for(uuid, type, err, null);
|
||||||
} else {
|
} else {
|
||||||
store_skin(uuid, profile, details, function(err, skin_hash) {
|
store_skin(uuid, profile, details, function(err, skin_hash) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user