From 439101197be938840b66e7ea97b50591ee1e3c78 Mon Sep 17 00:00:00 2001 From: Oscar Shrimpton Date: Tue, 30 Jan 2018 20:50:32 +0000 Subject: [PATCH] Minor linting issue --- snippets/chainAsync.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/chainAsync.md b/snippets/chainAsync.md index 20e72eae2..1833eb4ad 100644 --- a/snippets/chainAsync.md +++ b/snippets/chainAsync.md @@ -9,7 +9,7 @@ The tenerary function checks the next function exists before calling it, otherwi ```js const chainAsync = fns => { let curr = 0; - const next = () => fns[++curr] ? fns[curr](next) : false; + const next = () => (fns[++curr] ? fns[curr](next) : false); next(); }; ```