I
I
Igor2021-06-17 09:53:33
Linter
Igor, 2021-06-17 09:53:33

ESLint: expected to assign or call a function and saw an expression instead. (No-unused-expressions)?

60caef86c4243694694238.png

public stop (): void {
    this._processConnectingAndDisconnecting = true
    this._ua?.stop()
    this._ua?.unregister({ all: true })
 }


this._ua?.stop()Equivalent to this this._uaif this._ua == null|undefined

linter swears
ESLint: Expected an assignment or function call and instead saw an expression.(no-unused-expressions)


That is, the property is allegedly not assigned anywhere, which is quite logical.
How to proceed?

Should I ignore this message?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question