From: Carl Worth
Date: Thu, 11 Jun 2020 01:04:16 +0000 (-0700)
Subject: Avoid unnecessary use of fill(null)
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=bbbb65e60e043c8a60d362a6baa84e71dd4d2254;p=lmno.games
Avoid unnecessary use of fill(null)
Where we can just use a spread-syntax array copy for the same effect,
(namely, ensuring an array has actual items (even if undefined) rather
than "empty" so that map() actually does something).
---
diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index 21b766a..cd5f342 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -368,7 +368,7 @@ class ActivePrompt extends React.PureComponent {
{this.props.prompt.prompt}