Fixing some eslint warning

This commit is contained in:
LiHS 2019-08-15 14:03:48 +08:00
parent c092b5fa3a
commit 1ce4170b89
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ describe('parser/javascript/subexp.js', function() {
this.node = new javascript.Parser('(test)').__consume__subexp(); this.node = new javascript.Parser('(test)').__consume__subexp();
this.node.regexp = jasmine.createSpyObj('regexp', ['render']); this.node.regexp = jasmine.createSpyObj('regexp', ['render']);
this.node.container = jasmine.createSpyObj('container', ['addClass', 'group']); this.node.container = jasmine.createSpyObj('container', ['addClass', 'group']);
spyOn(this.node, 'label').and.returnValue('example label') spyOn(this.node, 'label').and.returnValue('example label');
this.node.regexp.render.and.returnValue(this.renderDeferred.promise); this.node.regexp.render.and.returnValue(this.renderDeferred.promise);
}); });

View File

@ -65,7 +65,7 @@ export default {
this.regexp = this.properties.regexp; this.regexp = this.properties.regexp;
// If there is no need for a label, then proxy to the nested regexp. // If there is no need for a label, then proxy to the nested regexp.
if (this.properties.capture.textValue == '?:') { if (this.properties.capture.textValue === '?:') {
this.proxy = this.regexp; this.proxy = this.regexp;
} }
} }