Fixed linting errors

pull/5370/head
ioedeveloper 1 year ago committed by Aniket
parent 6f5434f40c
commit 1e985fd91d
  1. 12
      apps/circuit-compiler/src/app/services/circomPluginClient.ts

@ -268,12 +268,12 @@ export class CircomPluginClient extends PluginClient {
} }
} catch (e) { } catch (e) {
// try to resolve include import from github if it is a circomlib dependency // try to resolve include import from github if it is a circomlib dependency
if (version && version[0]) { if (version && version[0]) {
path = `https://raw.githubusercontent.com/iden3/circomlib/${version[0]}/${splitInclude.slice(2).join('/')}` path = `https://raw.githubusercontent.com/iden3/circomlib/${version[0]}/${splitInclude.slice(2).join('/')}`
dependencyContent = await this.call('contentImport', 'resolveAndSave', path, null) dependencyContent = await this.call('contentImport', 'resolveAndSave', path, null)
} else { } else {
path = `https://raw.githubusercontent.com/iden3/circomlib/master/${splitInclude.slice(1).join('/')}` path = `https://raw.githubusercontent.com/iden3/circomlib/master/${splitInclude.slice(1).join('/')}`
dependencyContent = await this.call('contentImport', 'resolveAndSave', path, null) dependencyContent = await this.call('contentImport', 'resolveAndSave', path, null)
} }
} }
} else { } else {

Loading…
Cancel
Save