(string)
| 364 | } |
| 365 | |
| 366 | function addString(string) { |
| 367 | string = string || arg; |
| 368 | update((strings) => { |
| 369 | if (key in strings) { |
| 370 | console.error("String already exists"); |
| 371 | process.exit(1); |
| 372 | } else { |
| 373 | strings[key] = string; |
| 374 | return strings; |
| 375 | } |
| 376 | }); |
| 377 | } |
| 378 | } |
| 379 | } |
| 380 |
no test coverage detected