Quellcode durchsuchen

EAGLESIX-3004: Removed terse code.

Scott Munday vor 11 Jahren
Ursprung
Commit
359dab5e9d
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. 2 4
      lib/pipeline/matcher/TextMatchExpression.js

+ 2 - 4
lib/pipeline/matcher/TextMatchExpression.js

@@ -3,9 +3,7 @@
 var LeafMatchExpression = require('./LeafMatchExpression.js');
 
 var TextMatchExpression = module.exports = function TextMatchExpression() {
-	base.call(this);
-
-	this._matchType = 'TEXT';
+	base.call(this, 'TEXT');
 }, klass = TextMatchExpression, base = LeafMatchExpression, proto = klass.prototype = Object.create(base.prototype, {constructor: {value: klass}});
 
 /**
@@ -60,7 +58,7 @@ proto.matchesSingleElement = function matchesSingleElement(e) {
 proto.debugString = function debugString(level) {
 	var rtn = this._debugAddSpace(level);
 
-	rtn += 'TEXT : query=' + ', language=' + _language + ', tag=';
+	rtn += 'TEXT : query=' + ', language=' + this._language + ', tag=';
 
 	var tagData = this.getTag();