mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
JS: Add a related location in UnusedOrUndefinedStateProperty
This commit is contained in:
@@ -61,7 +61,7 @@ new C5({writtenInUnknownInitializerObject: 42});
|
||||
React.createClass({ // $ Alert
|
||||
render: function() {
|
||||
this.state.writtenInKnownInitializerObject;
|
||||
this.state.notWrittenInKnownInitializerObject;
|
||||
this.state.notWrittenInKnownInitializerObject; // $ RelatedLocation
|
||||
return <div/>;
|
||||
},
|
||||
getInitialState: function() {
|
||||
|
||||
Reference in New Issue
Block a user