Skip to content

refactor: replace == operator with util.isNil() - #209

Closed
NuoHui wants to merge 2 commits into
koajs:masterfrom
NuoHui:master
Closed

refactor: replace == operator with util.isNil()#209
NuoHui wants to merge 2 commits into
koajs:masterfrom
NuoHui:master

Conversation

@NuoHui

@NuoHui NuoHui commented Apr 11, 2021

Copy link
Copy Markdown

No description provided.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 5b3afa4 on NuoHui:master into 07ca4d7 on koajs:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 5b3afa4 on NuoHui:master into 07ca4d7 on koajs:master.

Comment thread lib/util.js
},

isNil(val) {
return val === null || typeof val === 'undefined';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modification is a little bit over abstract. I'd like to maintain the original style. :(

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@NuoHui NuoHui closed this Nov 24, 2021
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.

3 participants