I get ": The private field 'nameofmyvariable' is assigned but its value is never used" thanks to DOTWEEN

I’m using dotween, and the tweeners are just assigned a value like this:

scaleTween = transform.DOScale(endScale, duration);

BUT, it says scaleTween is never used, and I don’t need to cause that is the way DOTWEEN works. It doesn’t let me work unless I fix this problem, and it used to work before…

Thanks.

Just use it like this transform.DOScale(endScale, duration);
Not assigning it to a variable which doesn’t waste memory.