Fixed linting

This commit is contained in:
WBHarry 2026-05-02 14:26:22 +02:00
parent 091c8527d6
commit d40ee35f92
2 changed files with 23 additions and 25 deletions

View file

@ -42,7 +42,7 @@ export const GMUpdateEvent = {
UpdateSetting: 'DhGMUpdateSetting',
UpdateFear: 'DhGMUpdateFear',
UpdateCountdowns: 'DhGMUpdateCountdowns',
UpdateSaveMessage: 'DhGMUpdateSaveMessage',
UpdateSaveMessage: 'DhGMUpdateSaveMessage'
};
export const RefreshType = {
@ -109,7 +109,7 @@ export const registerSocketHooks = () => {
Hooks.on(socketEvent.GMCreate, async ({ data, documentType, scene }) => {
if (!game.user.isGM) return;
switch (documentType) {
default:
const cls = getDocumentClass(documentType);
@ -129,7 +129,7 @@ export const emitGMUpdate = async (eventName, callback, update, uuid = null, ref
};
export const emitGMCreate = async (documentType, callback, data, scene) => {
return await emitAsGM(socketEvent.GMCreate, { documentType, callback, data, scene });
return await emitAsGM(socketEvent.GMCreate, { documentType, callback, data, scene });
};
export const emitAsGM = async (event, data = { callback: () => {}, data: {} }) => {