Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
twojtasz committed Aug 16, 2019
1 parent 81b5e4b commit 17a81ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/parser/src/parsers/parse-timeslice-data-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function parseStreamSets(streamSets, timestamp, convertPrimitive) {
}
}

if (streamSet.no_data_streams && noDataStreams) {
if (streamSet.no_data_streams) {
noDataStreams.push(...streamSet.no_data_streams);
}
}
Expand Down
4 changes: 0 additions & 4 deletions modules/parser/src/synchronizers/xviz-stream-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,6 @@ export default class XVIZStreamBuffer {

for (const streamName in timeslice.streams) {
const value = timeslice.streams[streamName];
if (value === null) {
// Explicitly delete a stream
delete timesliceAtInsertPosition.streams[streamName];
}
streams[streamName][index] = value;
}
for (const streamName in timeslice.videos) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const TEST_CASES = [
timestamp: 1001,
streams: {A: 1.1, B: null}
},
snapshot: {A: 1.1, C: 1}
snapshot: {A: 1.1, B: null, C: 1}
},
{
id: 'TS-8',
Expand Down

0 comments on commit 17a81ef

Please sign in to comment.