diff --git a/lib/client/edit.js b/lib/client/edit.js index fe363b3c..6684833b 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -402,12 +402,12 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, DiffProto, diff_match_patch, Zip, M var isAllowed = Storage.isAllowed(); exec.if(!isAllowed, callback, function(func) { - DOM.checkStorageHash(path, function(error, equal) { - if (!equal) - patch = ''; - - func(patch); - }); + DOM.checkStorageHash(path, function(error, equal) { + if (!equal) + patch = ''; + + func(patch); + }); }); }); }