* Convert buffer/buffer[] to string/string[], * and apply reply transformer.
(
result: Buffer | Buffer[]
)
| 355 | * and apply reply transformer. |
| 356 | */ |
| 357 | transformReply( |
| 358 | result: Buffer | Buffer[] |
| 359 | ): string | string[] | Buffer | Buffer[] { |
| 360 | if (this.replyEncoding) { |
| 361 | result = convertBufferToString(result, this.replyEncoding); |
| 362 | } |
| 363 | const transformer = Command._transformer.reply[this.name]; |
| 364 | if (transformer) { |
| 365 | result = transformer(result); |
| 366 | } |
| 367 | |
| 368 | return result; |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Set the wait time before terminating the attempt to execute a command |
no test coverage detected