Fixed linting errors

pull/4430/head^2
ioedeveloper 1 year ago committed by Aniket
parent 535207fde0
commit 0e0ada0a6b
  1. 12
      apps/circuit-compiler/src/app/services/circomPluginClient.ts

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

Loading…
Cancel
Save