mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 16:01:16 +01:00
fix code style
no need to quote keys in an object line breaks are good
This commit is contained in:
parent
0099e8753e
commit
f24160c5f2
@ -121,7 +121,11 @@ 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 isUUID = uuid.length > 16;
|
||||||
var new_hash = { "uuid": uuid, "type": type, "callback": callback };
|
var new_hash = {
|
||||||
|
uuid: uuid,
|
||||||
|
type: type,
|
||||||
|
callback: 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((isUUID ? uuid : null), function(err, profile) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user