From d6bb1b2a12768fce79e510867774bfbf5f5b0744 Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Tue, 2 Jun 2020 13:05:15 -0700 Subject: [PATCH] Added note about requiring a single return statement. --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dd21c97cb0..8605ba3002 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -169,7 +169,7 @@ JavaScript sources in Open MCT should: code, and present these in the following order: * First, variable declarations and initialization. * Secondly, imperative statements. - * Finally, the returned value. + * Finally, the returned value. Functions should only have a single return statement. 1. Avoid the use of "magic" values. eg. ```JavaScript