Skip to content

Commit

Permalink
Add return to make it consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
KayelGee committed Feb 19, 2025
1 parent c234c5e commit 23ed221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/token-attacher.js
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ import {libWrapper} from './shim.js';
selected[type].push(element.document?._id ?? element._id);
}

if(TokenAttacher.isFirstActiveGM()) await TokenAttacher._detachElementsFromToken(selected, target_token, suppressNotification);
if(TokenAttacher.isFirstActiveGM()) return await TokenAttacher._detachElementsFromToken(selected, target_token, suppressNotification);
else game.socket.emit(`module.${moduleName}`, {event: `detachElementsFromToken`, eventdata: [selected, target_token.document._id, suppressNotification]});
}

Expand Down

0 comments on commit 23ed221

Please sign in to comment.