remove redundant cast

This commit is contained in:
Johannes Loher 2021-02-05 03:50:08 +01:00
parent 52c729c3fa
commit 05bd1335ba

View file

@ -228,7 +228,7 @@ export class DS4ActorSheet extends ActorSheet<unknown, DS4Actor> {
/** @override */
async _onDropItem(event: DragEvent, data: Parameters<typeof DS4Item.fromDropData>[0]): Promise<unknown> {
const item = ((await Item.fromDropData(data)) as unknown) as DS4Item;
if (item && !this.actor.canOwnItemType(item.data.type as ItemType)) {
if (item && !this.actor.canOwnItemType(item.data.type)) {
ui.notifications.warn(
game.i18n.format("DS4.WarningActorCannotOwnItem", {
actorName: this.actor.name,