Skip to content

Conversation

RafaelKr
Copy link
Contributor

@RafaelKr RafaelKr commented Apr 6, 2021

@fregante
Copy link
Contributor

fregante commented Apr 6, 2021

I think this check is redundant and should be removed. Invalid tokens are not saved

@RafaelKr
Copy link
Contributor Author

RafaelKr commented Apr 6, 2021

cc @sindresorhus I can remove this check at all if you want?

Edit: I think it makes sense. Already removed it.

@fregante
Copy link
Contributor

fregante commented Apr 6, 2021

You might want to keep it as a plain existence check. if !token, throw

@RafaelKr
Copy link
Contributor Author

RafaelKr commented Apr 6, 2021

Updated. Thanks!

@RafaelKr RafaelKr changed the title Adjust RegEx check for new GitHub token format Remove redundant RegEx check for token Apr 6, 2021
@sindresorhus sindresorhus changed the title Remove redundant RegEx check for token Remove redundant regex check for token Apr 6, 2021
@sindresorhus sindresorhus changed the title Remove redundant regex check for token Remove redundant regex for token check Apr 6, 2021
@sindresorhus sindresorhus merged commit dfbbd70 into sindresorhus:main Apr 6, 2021
@RafaelKr RafaelKr deleted the patch-1 branch April 6, 2021 18:15
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.

Error: missing token (new token format)

3 participants