#PR1: classic-ui: Prefix static caches with network id and code quality #25

Merged
Theo merged 9 commits from :master into master 2023-06-27 14:53:50 +03:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit 2623117f17 - Show all commits

View File

@ -7,7 +7,7 @@ import networkConfig from '../../networkConfig'
export function download({ name, directory }) { export function download({ name, directory }) {
const path = `${directory}${name}.gz`.toLowerCase() const path = `${directory}${name}.gz`.toLowerCase()
const data = fs.readFileSync(path) const data = fs.readFileSync(path, { flag: 'as+' })
const content = zlib.inflateSync(data) const content = zlib.inflateSync(data)
return content return content

View File

@ -112,8 +112,6 @@ async function start() {
const args = { ...parseArg(netId, tokenOrEvent), ...parseArg(netId, eventOrToken) } const args = { ...parseArg(netId, tokenOrEvent), ...parseArg(netId, eventOrToken) }
console.log('ARGS => ', args, netId)
if (!enabledChains.includes(netId)) { if (!enabledChains.includes(netId)) {
throw new Error(`Supported chain ids ${enabledChains.join(', ')}`) throw new Error(`Supported chain ids ${enabledChains.join(', ')}`)
} }