@samitouri / QOS-React / commits / ca94e26802

Remove 'packages/shared/invariant.js' (#22779)

Esteban committed Nov 16, 2021 at 21:11 UTC ca94e268025104e7844edc1fbe6e7b2b10d54e05
1 file changed -26
packages/shared/invariant.js deleted
-26
@@ -1,26 +0,0 @@
1 -/**
2 - * Copyright (c) Facebook, Inc. and its affiliates.
3 - *
4 - * This source code is licensed under the MIT license found in the
5 - * LICENSE file in the root directory of this source tree.
6 - *
7 - */
8 -
9 -/**
10 - * Use invariant() to assert state which your program assumes to be true.
11 - *
12 - * Provide sprintf-style format (only %s is supported) and arguments
13 - * to provide information about what broke and what you were
14 - * expecting.
15 - *
16 - * The invariant message will be stripped in production, but the invariant
17 - * will remain to ensure logic does not differ in production.
18 - */
19 -
20 -export default function invariant(condition, format, a, b, c, d, e, f) {
21 - // eslint-disable-next-line react-internal/prod-error-codes
22 - throw new Error(
23 - 'Internal React error: invariant() is meant to be replaced at compile ' +
24 - 'time. There is no runtime version.',
25 - );
26 -}