if file does not need to be updated, just return

pull/5370/head
yann300 5 years ago committed by LianaHus
parent 4030125933
commit 02bb3dfbcc
  1. 1
      src/app/files/fileProvider.js

@ -98,6 +98,7 @@ class FileProvider {
})
}
try {
if (window.remixFileSystem.readFileSync(unprefixedpath, 'utf8') === content) return true
window.remixFileSystem.writeFileSync(unprefixedpath, content)
} catch (e) {
cb(e)

Loading…
Cancel
Save