From 1e1a3d891aed5304a39762605d95fce189acb75c Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 21 Jun 2022 15:59:28 -0400 Subject: [PATCH] Change let to const --- client/homebrew/editor/snippetbar/snippetbar.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index 8557285f7..a78bfa1f7 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -91,9 +91,7 @@ const Snippetbar = createClass({ }, renderSnippetGroups : function(){ - let snippets = []; - - snippets = this.state.snippets.filter((snippetGroup)=>snippetGroup.view === this.props.view); + const snippets = this.state.snippets.filter((snippetGroup)=>snippetGroup.view === this.props.view); return _.map(snippets, (snippetGroup)=>{ return