Skip to content

Commit 216a7fd

Browse files
committed
lint fises
1 parent d2e726c commit 216a7fd

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
### v0.28.1
3+
### v0.28.2
44
* Fix regression introduced in v0.23 with playback-error change - transcription now continues after a playback error.
55

66
### v0.28.0

dist/watson-speech.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

speech-to-text/recognize-file.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ module.exports = function recognizeFile(options) { // eslint-disable-line comple
125125
// 3. re-pipe the source streams
126126

127127
var sources = streams.filter(function(s) {
128-
return s._readableState
129-
&& s._readableState.pipes
130-
&& (s._readableState.pipes === stream
131-
|| (Array.isArray(s._readableState.pipes) && s._readableState.pipes.indexOf(stream) !== -1)
128+
return s._readableState &&
129+
s._readableState.pipes &&
130+
(s._readableState.pipes === stream ||
131+
(Array.isArray(s._readableState.pipes) && s._readableState.pipes.indexOf(stream) !== -1)
132132
);
133133
});
134134

test/speaker-stream-spec.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ describe('SpeakerStream', function() {
2626
}],
2727
final: true
2828
},
29-
{
30-
speaker: 1,
31-
alternatives: [{
32-
timestamps: [
29+
{
30+
speaker: 1,
31+
alternatives: [{
32+
timestamps: [
3333
['hello', 0.28, 0.37],
34-
],
35-
transcript: 'hello '
36-
}],
37-
final: true
34+
],
35+
transcript: 'hello '
3836
}],
37+
final: true
38+
}],
3939
result_index: 0
4040
}];
4141

@@ -274,16 +274,16 @@ describe('SpeakerStream', function() {
274274
}],
275275
final: true
276276
},
277-
{
278-
speaker: 1,
279-
alternatives: [{
280-
timestamps: [
277+
{
278+
speaker: 1,
279+
alternatives: [{
280+
timestamps: [
281281
['hello', 0.28, 0.37],
282-
],
283-
transcript: 'hello '
284-
}],
285-
final: true
282+
],
283+
transcript: 'hello '
286284
}],
285+
final: true
286+
}],
287287
result_index: 0
288288
}];
289289

@@ -416,16 +416,16 @@ describe('SpeakerStream', function() {
416416
}],
417417
final: true
418418
},
419-
{
420-
speaker: 1,
421-
alternatives: [{
422-
timestamps: [
419+
{
420+
speaker: 1,
421+
alternatives: [{
422+
timestamps: [
423423
['hello', 0.28, 0.37],
424-
],
425-
transcript: 'hello '
426-
}],
427-
final: true
424+
],
425+
transcript: 'hello '
428426
}],
427+
final: true
428+
}],
429429
result_index: 0
430430
}];
431431

0 commit comments

Comments
 (0)