Commit 6f68cce0 authored by yann300's avatar yann300 Committed by LianaHus

if file does not need to be updated, just return

parent 3e4dc371
...@@ -98,6 +98,7 @@ class FileProvider { ...@@ -98,6 +98,7 @@ class FileProvider {
}) })
} }
try { try {
if (window.remixFileSystem.readFileSync(unprefixedpath, 'utf8') === content) return true
window.remixFileSystem.writeFileSync(unprefixedpath, content) window.remixFileSystem.writeFileSync(unprefixedpath, content)
} catch (e) { } catch (e) {
cb(e) cb(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment