Nucleus handler tools › Docs › Checks
A value compared with itself
Why it matters
Comparing something with itself is always the same; probably a typo.
Example
✗ Wrong
var a = 1;
if (a == a) {
}✓ Right
var a = 1;
var b = 2;
if (a == b) {
}How to fix it
Compare with the other value you meant.
Turn it off, or change how it shows
Each check can be shown as an error, warning, info or hint, or turned off. VS Code: "splitscreenme.lint.rules": { "no-self-compare": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule no-self-compare=off. Other editors: the lint.rules setting of ncdev lsp.
Is this right?
Tell us what's wrong