mirror of
https://github.com/github/codeql.git
synced 2026-05-10 01:10:09 +02:00
JS: rename js/useless-defensive-code to js/unneeded-defensive-code
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
function setSafeStringProp(o, prop, v) {
|
||||
// GOOD: `v == undefined` handles both `undefined` and `null`
|
||||
var safe = v == undefined? '': v;
|
||||
o[prop] = safe;
|
||||
}
|
||||
Reference in New Issue
Block a user