Skip to content

Commit b219b8b

Browse files
committed
Minor cleanup
1 parent 65f64f0 commit b219b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Control/Monad/Eff/AVar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ exports._tryPutVar = function (left, right, avar, value) {
203203
exports._tryTakeVar = function (left, right, nothing, just, avar) {
204204
return function () {
205205
var value = avar.value;
206-
if (value === EMPTY || avar.error !== null) {
206+
if (value === EMPTY) {
207207
return nothing;
208208
} else {
209209
avar.value = EMPTY;
@@ -225,7 +225,7 @@ exports._tryReadVar = function (nothing, just, avar) {
225225

226226
exports.isEmptyVar = function (avar) {
227227
return function () {
228-
return avar.value === EMPTY || avar.error !== null;
228+
return avar.value === EMPTY;
229229
};
230230
};
231231

0 commit comments

Comments
 (0)