Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jan 23, 2017
1 parent c116cfc commit b86ddab
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 35 deletions.
20 changes: 9 additions & 11 deletions lib/haro.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,17 +542,15 @@
console.error(err.stack || err.message || err);
}

if (og) {
this.set(key, og, true, true).then(() => {
if (this.logging) {
console.log("Reverted", key);
}
}).catch(() => {
if (this.logging) {
console.log("Failed to revert", key);
}
});
}
this.set(key, og, true, true).then(() => {
if (this.logging) {
console.log("Reverted", key);
}
}).catch(() => {
if (this.logging) {
console.log("Failed to revert", key);
}
});
});
}

Expand Down
20 changes: 9 additions & 11 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,17 +598,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
console.error(err.stack || err.message || err);
}

if (og) {
_this3.set(key, og, true, true).then(function () {
if (_this3.logging) {
console.log("Reverted", key);
}
}).catch(function () {
if (_this3.logging) {
console.log("Failed to revert", key);
}
});
}
_this3.set(key, og, true, true).then(function () {
if (_this3.logging) {
console.log("Reverted", key);
}
}).catch(function () {
if (_this3.logging) {
console.log("Failed to revert", key);
}
});
});
}

Expand Down
Loading

0 comments on commit b86ddab

Please sign in to comment.