-
-
Notifications
You must be signed in to change notification settings - Fork 923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(user-agent): fix linter warnings #1174
Conversation
BTW, this PR brings the total number of linter warnings in the project down to ZERO 🚀 |
Codecov Report
@@ Coverage Diff @@
## main #1174 +/- ##
==========================================
- Coverage 99.63% 99.62% -0.01%
==========================================
Files 2152 2152
Lines 236201 236234 +33
Branches 980 974 -6
==========================================
+ Hits 235336 235347 +11
- Misses 844 866 +22
Partials 21 21
|
d2f0baa
to
55ec3a2
Compare
I can't reproduce the error described in the failing pipeline. Anyone may help? |
This is a relatively new error that only happens randomly. I ran the test again and now it is working. |
I see. Can this be due to all modules importing |
55ec3a2
to
f6699e4
Compare
@ST-DDT the |
This PR fixes all remaining linter warnings in
user-agent.ts
.To achieve this I changed the implementation of the function in a non-breaking way. I mainly simplified the
rnd
function since it had a lot of unnecessary branches. I also converted all internal functions to constants so they don't require any JSDoc.