Nucleus handler tools › Docs › Checks
A value assigned to itself
Why it matters
Assigning a value to itself does nothing.
Example
✗ Wrong
var a = 1;
a = a;✓ Right
var a = 1;
var b = a;How to fix it
Assign the 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-assign": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule no-self-assign=off. Other editors: the lint.rules setting of ncdev lsp.
Is this right?
Tell us what's wrong