Skip to content

Commit

Permalink
fix(api) save: patch
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Mar 30, 2018
1 parent 58084c1 commit d158202
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion client/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Deepword.prototype._diff = function(value) {

Deepword.prototype._doDiff = async function(path) {
const {_story} = this;
const checkHash_ = promisify(_story.checkHash, _story);
const checkHash_ = promisify(_story.checkHash.bind(_story));
const value = this.getValue();
const ifEqual = (equal) => {
return !equal ? '' : this._diff(value);
Expand Down
2 changes: 0 additions & 2 deletions client/api/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export default function() {
const _zip = this._zip.bind(this);
const _write = this._write.bind(this);

this._value = value;

this._loadOptions()
.then(ifDiffDo(doDiff, _filename))
.then(checkPatch(length, _maxSize))
Expand Down

0 comments on commit d158202

Please sign in to comment.