more cleanup

This commit is contained in:
Dave Horton
2023-05-08 13:58:18 -04:00
parent 843ae6c440
commit 60a09a48c1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1292,7 +1292,7 @@ class CallSession extends Emitter {
}
else {
const {queue, command} = resolution;
const {span} = this.rootSpan.startChildSpan(`recv: ${command}`);
const {span} = this.rootSpan.startChildSpan(`recv command: ${command}`);
span.setAttributes({
'async.request.queue': queue,
});
+1 -1
View File
@@ -49,7 +49,7 @@ class TaskConfig extends Task {
/* reset recognizer and/or synthesizer to default values? */
if (this.data.reset) {
if (typeof this.data.reset === 'string') this.data.reset = [this.data.reset];
phrase.push(`reset ${this.data.reset.join(',')}`);
if (this.data.reset.length) phrase.push(`reset ${this.data.reset.join(',')}`);
}
else this.data.reset = [];