Commit f8e8059
repl,readline: clean up code
This simplifies code that was more complicated than it had to be
and removes code that should never be reached.
PR-URL: #31288
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 3881189 commit f8e8059Copy full SHA for f8e8059
File tree
Expand file treeCollapse file tree
4 files changed
+18
-43
lines changedOpen diff view settings
Filter options
- lib
- internal
- readline
- repl
Expand file treeCollapse file tree
4 files changed
+18
-43
lines changedOpen diff view settings
Collapse file
lib/internal/readline/utils.js
Copy file name to clipboardExpand all lines: lib/internal/readline/utils.js+1-5Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
136 | 136 | |
137 | 137 | |
138 | 138 | |
139 | | - |
140 | | - |
| 139 | + |
141 | 140 | |
142 | 141 | |
143 | 142 | |
| ||
459 | 458 | |
460 | 459 | |
461 | 460 | |
462 | | - |
463 | | - |
464 | | - |
465 | 461 | |
466 | 462 | |
467 | 463 | |
|
Collapse file
+2-4Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
320 | 320 | |
321 | 321 | |
322 | 322 | |
323 | | - |
324 | | - |
325 | | - |
326 | | - |
| 323 | + |
| 324 | + |
327 | 325 | |
328 | 326 | |
329 | 327 | |
|
Collapse file
+10-27Lines changed: 10 additions & 27 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
735 | 735 | |
736 | 736 | |
737 | 737 | |
738 | | - |
739 | 738 | |
740 | 739 | |
741 | | - |
742 | 740 | |
743 | | - |
744 | | - |
745 | | - |
746 | | - |
747 | | - |
748 | | - |
749 | | - |
750 | | - |
751 | | - |
752 | | - |
753 | | - |
754 | | - |
| 741 | + |
755 | 742 | |
756 | 743 | |
757 | 744 | |
758 | | - |
759 | 745 | |
760 | 746 | |
761 | 747 | |
| ||
1119 | 1105 | |
1120 | 1106 | |
1121 | 1107 | |
1122 | | - |
| 1108 | + |
| 1109 | + |
1123 | 1110 | |
1124 | 1111 | |
1125 | | - |
| 1112 | + |
1126 | 1113 | |
1127 | | - |
| 1114 | + |
1128 | 1115 | |
1129 | 1116 | |
1130 | 1117 | |
1131 | 1118 | |
1132 | 1119 | |
1133 | | - |
| 1120 | + |
1134 | 1121 | |
1135 | 1122 | |
1136 | 1123 | |
1137 | 1124 | |
1138 | | - |
1139 | | - |
| 1125 | + |
| 1126 | + |
1140 | 1127 | |
1141 | 1128 | |
1142 | 1129 | |
1143 | 1130 | |
1144 | 1131 | |
1145 | | - |
1146 | | - |
| 1132 | + |
| 1133 | + |
1147 | 1134 | |
1148 | 1135 | |
1149 | 1136 | |
1150 | 1137 | |
1151 | 1138 | |
1152 | 1139 | |
1153 | 1140 | |
1154 | | - |
1155 | | - |
1156 | | - |
1157 | | - |
1158 | 1141 | |
1159 | 1142 | |
1160 | 1143 | |
|
Collapse file
+5-7Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1364 | 1364 | |
1365 | 1365 | |
1366 | 1366 | |
1367 | | - |
| 1367 | + |
1368 | 1368 | |
1369 | | - |
1370 | | - |
1371 | | - |
1372 | | - |
1373 | | - |
| 1369 | + |
| 1370 | + |
| 1371 | + |
1374 | 1372 | |
1375 | | - |
| 1373 | + |
1376 | 1374 | |
1377 | 1375 | |
1378 | 1376 | |
|
0 commit comments