mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
This was previously flagged if `exports` wasn't used any further. While it's true that the assignment to `exports` is redundant in this case, the assignment is also flagged by DeadStorOfLocal, so there is no point in InvalidExport flagging it as well.
3 lines
87 B
JavaScript
3 lines
87 B
JavaScript
// OK: useless assignment flagged by other query
|
|
module.exports = exports = { a: 23 };
|