diff --git a/LICENSE b/LICENSE index f24ba26..b52a3e1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2018, Alex A. Naanou +Copyright (c) 2018-2019, Alex A. Naanou All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/walk.js b/walk.js index 51868de..728b968 100644 --- a/walk.js +++ b/walk.js @@ -149,12 +149,10 @@ function(getter, state, ...nodes){ } } - // call the done handler... - res = done ? + return done ? + // call the done handler... done.call(context, res, WalkStopException ? 'stopped': 'done') : res - - return res } return (