Skip to content

Commit

Permalink
style(code): update code lint, hint friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Feb 12, 2018
1 parent b912e68 commit 35058a3
Show file tree
Hide file tree
Showing 73 changed files with 463 additions and 463 deletions.
12 changes: 6 additions & 6 deletions perf/micro/current-thread-scheduler/operators/retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old retry with currentThread scheduler', function () {
_old.subscribe(_next, _error, _complete);
})
.add('new retry with currentThread scheduler', function () {
_new.subscribe(_next, _error, _complete);
});
.add('old retry with currentThread scheduler', function () {
_old.subscribe(_next, _error, _complete);
})
.add('new retry with currentThread scheduler', function () {
_new.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/current-thread-scheduler/operators/skipwhile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old skipWhile with current thread scheduler', function () {
oldSkipWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
})
.add('new skipWhile with current thread scheduler', function () {
newSkipWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
});
.add('old skipWhile with current thread scheduler', function () {
oldSkipWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
})
.add('new skipWhile with current thread scheduler', function () {
newSkipWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/current-thread-scheduler/operators/takelast.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old take with immediate scheduler', function () {
oldTakeLastWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new take with immediate scheduler', function () {
newTakeLastWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old take with immediate scheduler', function () {
oldTakeLastWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new take with immediate scheduler', function () {
newTakeLastWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/current-thread-scheduler/operators/takewhile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old takeWhile with current thread scheduler', function () {
oldTakeWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
})
.add('new takeWhile with current thread scheduler', function () {
newTakeWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
});
.add('old takeWhile with current thread scheduler', function () {
oldTakeWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
})
.add('new takeWhile with current thread scheduler', function () {
newTakeWhileWithCurrentThreadScheduler.subscribe(_next, _error, _complete);
});
};
2 changes: 1 addition & 1 deletion perf/micro/immediate-scheduler/observable/range.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var RxOld = require('rx');
var RxNew = require('../../../../index');

module.exports = function range(suite) {
// add tests
// add tests

var oldRangeWithImmediateScheduler = RxOld.Observable.range(0, 25, RxOld.Scheduler.immediate);
var newRangeWithImmediateScheduler = RxNew.Observable.range(0, 25);
Expand Down
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old buffer() with immediate scheduler', function () {
oldBufferWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new buffer() with immediate scheduler', function () {
newBufferWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old buffer() with immediate scheduler', function () {
oldBufferWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new buffer() with immediate scheduler', function () {
newBufferWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/buffercount-skip.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old bufferCount with immediate scheduler', function () {
oldBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new bufferCount with immediate scheduler', function () {
newBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old bufferCount with immediate scheduler', function () {
oldBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new bufferCount with immediate scheduler', function () {
newBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/buffercount.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old bufferCount with immediate scheduler', function () {
oldBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new bufferCount with immediate scheduler', function () {
newBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old bufferCount with immediate scheduler', function () {
oldBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new bufferCount with immediate scheduler', function () {
newBufferCountWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/catch.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old catch with immediate scheduler', function () {
oldCatchWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new catch with immediate scheduler', function () {
newCatchWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old catch with immediate scheduler', function () {
oldCatchWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new catch with immediate scheduler', function () {
newCatchWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/combinelatest.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old combineLatest with immediate scheduler', function () {
oldCombineLatestWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new combineLatest with immediate scheduler', function () {
newCombineLatestWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old combineLatest with immediate scheduler', function () {
oldCombineLatestWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new combineLatest with immediate scheduler', function () {
newCombineLatestWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/concat-many.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old concatMap with immediate scheduler', function () {
oldConcatMapWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new concatMap with immediate scheduler', function () {
newConcatMapWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old concatMap with immediate scheduler', function () {
oldConcatMapWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new concatMap with immediate scheduler', function () {
newConcatMapWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old concat with immediate scheduler', function () {
oldConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new concat with immediate scheduler', function () {
newConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old concat with immediate scheduler', function () {
oldConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new concat with immediate scheduler', function () {
newConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/concatall.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old concatAll with immediate scheduler', function () {
oldConcatAllWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new concatAll with immediate scheduler', function () {
newConcatAllWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old concatAll with immediate scheduler', function () {
oldConcatAllWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new concatAll with immediate scheduler', function () {
newConcatAllWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/count-scalar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old count over scalar with immediate scheduler', function () {
oldConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new count over scalar with immediate scheduler', function () {
newConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old count over scalar with immediate scheduler', function () {
oldConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new count over scalar with immediate scheduler', function () {
newConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/count.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old count with immediate scheduler', function () {
oldConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new count with immediate scheduler', function () {
newConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old count with immediate scheduler', function () {
oldConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new count with immediate scheduler', function () {
newConcatWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/defaultifempty.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old defaultIfEmpty with immediate scheduler', function () {
oldDefaultIfEmptyWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new defaultIfEmpty with immediate scheduler', function () {
newDefaultIfEmptyWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old defaultIfEmpty with immediate scheduler', function () {
oldDefaultIfEmptyWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new defaultIfEmpty with immediate scheduler', function () {
newDefaultIfEmptyWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/distinct-keyselector.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old count with immediate scheduler', function () {
_old.subscribe(_next, _error, _complete);
})
.add('new count with immediate scheduler', function () {
_new.subscribe(_next, _error, _complete);
});
.add('old count with immediate scheduler', function () {
_old.subscribe(_next, _error, _complete);
})
.add('new count with immediate scheduler', function () {
_new.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/distinct.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old count with immediate scheduler', function () {
_old.subscribe(_next, _error, _complete);
})
.add('new count with immediate scheduler', function () {
_new.subscribe(_next, _error, _complete);
});
.add('old count with immediate scheduler', function () {
_old.subscribe(_next, _error, _complete);
})
.add('new count with immediate scheduler', function () {
_new.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/filter-scalar-false.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old filter over scalar in the negative with immediate scheduler', function () {
oldFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new filter over scalar in the negative with immediate scheduler', function () {
newFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old filter over scalar in the negative with immediate scheduler', function () {
oldFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new filter over scalar in the negative with immediate scheduler', function () {
newFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/filter-scalar-true.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old filter over scalar in the affirmative with immediate scheduler', function () {
oldFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new filter over scalar in the affirmative with immediate scheduler', function () {
newFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old filter over scalar in the affirmative with immediate scheduler', function () {
oldFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new filter over scalar in the affirmative with immediate scheduler', function () {
newFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old filter with immediate scheduler', function () {
oldFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new filter with immediate scheduler', function () {
newFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
});
.add('old filter with immediate scheduler', function () {
oldFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
})
.add('new filter with immediate scheduler', function () {
newFilterWithImmediateScheduler.subscribe(_next, _error, _complete);
});
};
12 changes: 6 additions & 6 deletions perf/micro/immediate-scheduler/operators/find-predicate-this.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old find(predicate, thisArg) with immediate scheduler', function () {
oldFindPredicateThisArg.subscribe(_next, _error, _complete);
})
.add('new find(predicate, thisArg) with immediate scheduler', function () {
newFindPredicateThisArg.subscribe(_next, _error, _complete);
});
.add('old find(predicate, thisArg) with immediate scheduler', function () {
oldFindPredicateThisArg.subscribe(_next, _error, _complete);
})
.add('new find(predicate, thisArg) with immediate scheduler', function () {
newFindPredicateThisArg.subscribe(_next, _error, _complete);
});
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module.exports = function (suite) {
function _error(e) { }
function _complete() { }
return suite
.add('old findIndex(predicate, thisArg) with immediate scheduler', function () {
oldFindIndexPredicateThisArg.subscribe(_next, _error, _complete);
})
.add('new findIndex(predicate, thisArg) with immediate scheduler', function () {
newFindIndexPredicateThisArg.subscribe(_next, _error, _complete);
});
.add('old findIndex(predicate, thisArg) with immediate scheduler', function () {
oldFindIndexPredicateThisArg.subscribe(_next, _error, _complete);
})
.add('new findIndex(predicate, thisArg) with immediate scheduler', function () {
newFindIndexPredicateThisArg.subscribe(_next, _error, _complete);
});
};
Loading

0 comments on commit 35058a3

Please sign in to comment.