Skip to content

Fixed return value discarded warnings by adding disable comment - #5

Open
hsandt wants to merge 1 commit into
rocknightstudios:masterfrom
hsandt:fix-return-value-discarded-warnings
Open

hsandt wants to merge 1 commit into
rocknightstudios:masterfrom
hsandt:fix-return-value-discarded-warnings

Conversation

@hsandt

@hsandt hsandt commented Apr 21, 2020

Copy link
Copy Markdown

I decided to disable the warnings on a per-line basis so project owners don't have to disable it on the whole project. I think this is the least intrusive solution.

An alternative that doesn't need a new line is to write var _err = ...connect(...)

Another alternative is to actually check the Error result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant