@samitouri / QOS-React-2 / commits / c33d443c0b

Fix a couple small lint issues

These aren't caught by eslint yet :(

Paul O’Shannessy committed Jan 22, 2015 at 14:39 UTC c33d443c0b5a069d3c39981c96f7a2c9b4f5bc10
2 files changed +2 -3
src/core/ReactCompositeComponent.js
-1
@@ -675,7 +675,6 @@ var ReactCompositeComponentMixin = assign({},
675 _warnIfContextsDiffer: function(ownerBasedContext, parentBasedContext) {
676 ownerBasedContext = this._maskContext(ownerBasedContext);
677 parentBasedContext = this._maskContext(parentBasedContext);
678 - var ownerKeys = Object.keys(ownerBasedContext).sort();
678 var parentKeys = Object.keys(parentBasedContext).sort();
679 var displayName = this.getName() || 'ReactCompositeComponent';
680 for (var i = 0; i < parentKeys.length; i++) {
src/modern/class/__tests__/ReactES6Class-test.js
+2 -2
@@ -127,7 +127,7 @@ describe('ReactES6Class', function() {
127 }
128 }
129 expect(() => test(<Foo />, 'span', '')).toThrow(
130 - 'Invariant Violation: Foo.state: ' +
130 + 'Invariant Violation: Foo.state: ' +
131 'must be set to an object or null'
132 );
133 });
@@ -243,7 +243,7 @@ describe('ReactES6Class', function() {
243 return <span className={this.props.value} />;
244 }
245 }
246 - var instance = test(<Foo value="foo" />, 'SPAN', 'foo');
246 + test(<Foo value="foo" />, 'SPAN', 'foo');
247 expect(lifeCycles).toEqual([
248 'will-mount',
249 'did-mount'