From 104bee2c19f0c6b4a230f462a5d83d79d1e21fff Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 15 May 2023 22:42:43 +0300 Subject: [PATCH] remove old stuff --- .yarnrc.yml | 2 -- src/server/structures/Flag.ts | 7 ------- 2 files changed, 9 deletions(-) diff --git a/.yarnrc.yml b/.yarnrc.yml index ce05269..69a5e42 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,5 +1,3 @@ nodeLinker: node-modules - npmRegistryServer: "https://registry.corgi.wtf" - yarnPath: .yarn/releases/yarn-3.5.1.cjs diff --git a/src/server/structures/Flag.ts b/src/server/structures/Flag.ts index de509dc..bd6016a 100644 --- a/src/server/structures/Flag.ts +++ b/src/server/structures/Flag.ts @@ -8,9 +8,6 @@ import FlagManager from "../components/FlagManager.js"; // Prod: (1 << 3) // }; -const CONSUMERS = [ 'client', 'server', 'api' ]; -const ENVS = [ 'test', 'prod' ]; - class Flag { #manager: FlagManager; @@ -35,13 +32,9 @@ class Flag { if (!data.consumer) throw new Error('Missing consumer'); - if (!CONSUMERS.includes(data.consumer)) - throw new Error('Bad consumer'); if (!data.env) throw new Error('Missing env'); - if (!ENVS.includes(data.env)) - throw new Error('Bad env'); if (!('value' in data)) throw new Error('Missing value');