mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 07:06:14 -05:00
Enable Biome rules 5
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
// adapted from https://github.com/alexreardon/tiny-invariant, changed to show errors in production as well
|
||||
|
||||
export default function invariant(
|
||||
condition: any,
|
||||
message?: string,
|
||||
): asserts condition {
|
||||
export function invariant(condition: any, message?: string): asserts condition {
|
||||
if (condition) return;
|
||||
|
||||
const addition = message ? `: ${message}` : "";
|
||||
|
||||
Reference in New Issue
Block a user