Revert no-lonely-if

This commit is contained in:
Ray Schamp 2016-10-24 10:28:31 -04:00
parent 1bd1d8e8d1
commit 14a2dbc50f

View file

@ -77,10 +77,12 @@ var execute = function (sequencer, thread) {
if (!edgeWasActivated) {
sequencer.retireThread(thread);
}
} else if (!resolvedValue) {
} else {
// Not an edge-activated hat: retire the thread
// if predicate was false.
sequencer.retireThread(thread);
if (!resolvedValue) {
sequencer.retireThread(thread);
}
}
} else {
// In a non-hat, report the value visually if necessary if