Skip to content

Commit

Permalink
chore: fix test description and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Feb 24, 2021
1 parent e8b05ef commit 1583702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/operators/buffer-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Observable.prototype.buffer', () => {
});
});

it('should not emit a final buffer if the closingNotifier is already complete', () => {
it('should emit a final buffer if the closingNotifier is already complete', () => {
testScheduler.run(({ hot, expectObservable }) => {
const a = hot(' -a-b-c-d-e-f-g-h-i-|');
const b = hot(' -----B-----B--|');
Expand Down
3 changes: 1 addition & 2 deletions src/internal/operators/buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ import { OperatorSubscriber } from './OperatorSubscriber';
*/
export function buffer<T>(closingNotifier: Observable<any>): OperatorFunction<T, T[]> {
return operate((source, subscriber) => {
// The current buffered values. If this is null, it's because the
// closingNotifier has completed before the source.
// The current buffered values.
let currentBuffer: T[] = [];

// Subscribe to our source.
Expand Down

0 comments on commit 1583702

Please sign in to comment.