@samitouri / QOS-React / commits / af2d1374c4

Let -> const

Dan Abramov committed Apr 25, 2019 at 17:38 UTC af2d1374c4737b2e241528854650d1b4a0f4ce50
2 files changed +6 -6
src/devtools/store.js
+3 -3
@@ -632,14 +632,14 @@ export default class Store extends EventEmitter {
632 let i = 2;
633
634 // Reassemble the string table.
635 - let stringTable = [
635 + const stringTable = [
636 null, // ID = 0 corresponds to the null string.
637 ];
638 const stringTableSize = operations[i++];
639 const stringTableEnd = i + stringTableSize;
640 while (i < stringTableEnd) {
641 - let nextLength = operations[i++];
642 - let nextString = utfDecodeString(
641 + const nextLength = operations[i++];
642 + const nextString = utfDecodeString(
643 (operations.slice(i, i + nextLength): any)
644 );
645 stringTable.push(nextString);
src/devtools/views/Profiler/CommitTreeBuilder.js
+3 -3
@@ -169,14 +169,14 @@ function updateTree(
169 let i = 2;
170
171 // Reassemble the string table.
172 - let stringTable = [
172 + const stringTable = [
173 null, // ID = 0 corresponds to the null string.
174 ];
175 const stringTableSize = operations[i++];
176 const stringTableEnd = i + stringTableSize;
177 while (i < stringTableEnd) {
178 - let nextLength = operations[i++];
179 - let nextString = utfDecodeString(
178 + const nextLength = operations[i++];
179 + const nextString = utfDecodeString(
180 (operations.slice(i, i + nextLength): any)
181 );
182 stringTable.push(nextString);