Skip to content

Conversation

@ianvizarra
Copy link
Contributor

I removed the optional curly brackets. It's not required if only one expression is present.

The function isCommandline can also be refactored to:

const isCommandline = (userAgent) =>  (userAgent.search(/curl|wget/i) !== -1) 

P.S
Kudos Sir!

Copy link
Member

@warengonzaga warengonzaga left a comment

Choose a reason for hiding this comment

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

I'm using ESLint.. via VSCode... will it work?

Copy link
Member

@warengonzaga warengonzaga left a comment

Choose a reason for hiding this comment

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

Thank you for revising this...

Copy link
Member

@warengonzaga warengonzaga left a comment

Choose a reason for hiding this comment

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

It works in my end...

@warengonzaga warengonzaga merged commit 6092564 into OSSPhilippines:dev Mar 27, 2020
@warengonzaga
Copy link
Member

Thank you for your contribution @ianvizarra

@ianvizarra
Copy link
Contributor Author

You're welcome @warengonzaga.

Are you using gitflow? When is the next release?

@warengonzaga
Copy link
Member

Yes I'm using a gitflow @ianvizarra I'm working locally... I can't say when the v3 to release I have to fix the issue in ISO 3166... the API doesn't server in that way so I have to implement a filtering for ISO 3166 and return the correct value. If you can figure it out please let me know.

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.

2 participants