remove empty lines from remappings

pull/4299/head
aniket-engg 1 year ago committed by Aniket
parent 715d5f9c3e
commit 8a71efdb7e
  1. 4
      libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts

@ -111,8 +111,8 @@ export class CompileTabLogic {
this.event.emit('removeAnnotations')
this.event.emit('startingCompilation')
if(await this.api.fileExists('remappings.txt')) {
this.api.readFile('remappings.txt').then( remappings => {
this.compiler.set('remappings', remappings.split('\n'))
this.api.readFile('remappings.txt').then(remappings => {
this.compiler.set('remappings', remappings.split('\n').filter(Boolean))
})
}
if (this.configFilePath) {

Loading…
Cancel
Save