mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
JS: add query js/unused-property
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
function f() {
|
||||
var o = {
|
||||
prop_a: expensiveComputation(),
|
||||
prop_b: anotherComputation()
|
||||
};
|
||||
|
||||
return o.prop_b;
|
||||
}
|
||||
Reference in New Issue
Block a user