don't show all logs

pull/1342/head
bunsenstraat 3 years ago committed by davidzagi93@gmail.com
parent d26f26f312
commit d6d7ea6415
  1. 11
      apps/remix-ide/src/app/files/dgitProvider.js

@ -432,13 +432,12 @@ class DGitProvider extends Plugin {
const dir = path.dirname(file.path)
try {
this.createDirectories(`${workspace.absolutePath}/${dir}`)
} catch (e) { console.log(e) }
} catch (e) { }
try {
window.remixFileSystem.writeFileSync(`${workspace.absolutePath}/${file.path}`, Buffer.concat(content) || new Uint8Array())
} catch (e) { console.log(e) }
} catch (e) { }
}
} catch (e) {
console.log(e)
}
return result
}
@ -485,7 +484,8 @@ class DGitProvider extends Plugin {
if (typeof window !== 'undefined') {
window.localStorage.setItem(name, content)
}
} catch (exception) {
} catch (e) {
console.log(e)
return false
}
return true
@ -518,7 +518,8 @@ class DGitProvider extends Plugin {
const finalPath = previouspath + '/' + directories[i]
try {
window.remixFileSystem.mkdirSync(finalPath)
} catch (e) { }
} catch (e) {
}
}
}

Loading…
Cancel
Save