From d4b1ecbcb115fe5b0d18e3db20c4900695b60750 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Thu, 10 Jun 2021 12:16:52 +0300 Subject: [PATCH] fix: remove common js --- mustache/templates/common.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 mustache/templates/common.js diff --git a/mustache/templates/common.js b/mustache/templates/common.js deleted file mode 100644 index 8cc5679..0000000 --- a/mustache/templates/common.js +++ /dev/null @@ -1,17 +0,0 @@ -const createStartBlock = (blocks, env) => { - if (env === 'test') { - return blocks.exchanger - ? blocks.exchanger.test - ? blocks.exchanger.test - : blocks.exchanger.prod - : blocks.test || blocks.prod; - } else if (env === 'prod') { - return blocks.exchanger && blocks.exchanger.prod ? blocks.exchanger.prod : blocks.prod; - } else { - throw new Error('Invalid env for creating a yaml file'); - } -}; - -module.exports = { - createStartBlock, -};