summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/code-path-analysis/fork-context.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/code-path-analysis/fork-context.js')
-rw-r--r--tools/eslint/lib/code-path-analysis/fork-context.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/code-path-analysis/fork-context.js b/tools/eslint/lib/code-path-analysis/fork-context.js
index f47249b998..6996af1dcc 100644
--- a/tools/eslint/lib/code-path-analysis/fork-context.js
+++ b/tools/eslint/lib/code-path-analysis/fork-context.js
@@ -187,7 +187,7 @@ ForkContext.prototype = {
* @returns {void}
*/
add(segments) {
- assert(segments.length >= this.count, segments.length + " >= " + this.count);
+ assert(segments.length >= this.count, `${segments.length} >= ${this.count}`);
this.segmentsList.push(mergeExtraSegments(this, segments));
},
@@ -200,7 +200,7 @@ ForkContext.prototype = {
* @returns {void}
*/
replaceHead(segments) {
- assert(segments.length >= this.count, segments.length + " >= " + this.count);
+ assert(segments.length >= this.count, `${segments.length} >= ${this.count}`);
this.segmentsList.splice(-1, 1, mergeExtraSegments(this, segments));
},