chore: remove unused file and add missing reuse headers

This commit is contained in:
Johannes Loher 2022-05-16 02:19:31 +02:00
parent d011a20005
commit f9c8cfb77a
4 changed files with 14 additions and 20 deletions

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 Johannes Loher
//
// SPDX-License-Identifier: MIT
import { packageId } from '../constants';
import type { TickwerkCombatant } from '../data/documents/combatant';

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 Johannes Loher
//
// SPDX-License-Identifier: MIT
import { getGame } from '../helpers';
import { registerDS4SpecificFunctionality } from './ds4';

View file

@ -1,20 +0,0 @@
// SPDX-FileCopyrightText: 2021 Johannes Loher
//
// SPDX-License-Identifier: MIT
const defaultMessage =
'There has been an unexpected error in the Tickwerk module. For more details, please take a look at the console (F12).';
/**
* Tests if the given `value` is truthy.
*
* If it is not truthy, an {@link Error} is thrown, which depends on the given `message` parameter:
* - If `message` is a string`, it is used to construct a new {@link Error} which then is thrown.
* - If `message` is an instance of {@link Error}, it is thrown.
* - If `message` is `undefined`, an {@link Error} with a default message is thrown.
*/
export const enforce = (value: unknown, message: string | Error = defaultMessage): asserts value => {
if (!value) {
throw message instanceof Error ? message : new Error(message);
}
};

View file

@ -1,3 +1,9 @@
{{!--
SPDX-FileCopyrightText: 2022 Johannes Loher
SPDX-License-Identifier: MIT
--}}
<section class="tab sidebar-tab directory flexcol" id="combat" data-tab="combat">
<header id="combat-round">
{{#if user.isGM}}