Skip to content

Commit 2e43205

Browse files
lydellsupermario
authored andcommitted
Simplify away now unnecessary toReturn variable
1 parent c061453 commit 2e43205

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extra/Lamdera/Injection.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,10 @@ injections mode isBackend isLocalDev =
711711
const die = function() {
712712
//console.log('App dying');
713713

714-
// Render one last time, synchronously, in case their is a scheduled
714+
// Render one last time, synchronously, in case there is a scheduled
715715
// render with requestAnimationFrame (which then become no-ops).
716716
// Rendering mutates the vdom, and we want those mutations.
717717
stepper(model, true /* isSync */);
718-
var toReturn = _VirtualDom_lastVNode;
719718

720719
// Remove Elm's event listeners. Both the ones added
721720
// automatically on every <a> element, as well as the ones
@@ -754,7 +753,7 @@ injections mode isBackend isLocalDev =
754753
// in upgrade mode, and the update function stops doing its regular business
755754
// and just forwards messages instead.
756755

757-
return toReturn;
756+
return _VirtualDom_lastVNode;
758757
}
759758

760759
// This can't be done in the die function, because then it's not possible to

0 commit comments

Comments
 (0)