Skip to content
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: fix some lint warnings #613

Merged
merged 4 commits into from
Mar 15, 2022
Merged

chore: fix some lint warnings #613

merged 4 commits into from
Mar 15, 2022

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Mar 11, 2022

No description provided.

@ST-DDT ST-DDT added c: feature Request for new feature c: chore PR that doesn't affect the runtime behavior labels Mar 11, 2022
@ST-DDT ST-DDT self-assigned this Mar 11, 2022
@ST-DDT ST-DDT requested a review from a team as a code owner March 11, 2022 18:55
@codecov
Copy link

codecov bot commented Mar 11, 2022

Codecov Report

Merging #613 (41efc4a) into main (09487b6) will decrease coverage by 0.00%.
The diff coverage is 98.11%.

@@            Coverage Diff             @@
##             main     #613      +/-   ##
==========================================
- Coverage   99.33%   99.33%   -0.01%     
==========================================
  Files        1920     1920              
  Lines      176469   176483      +14     
  Branches      900      905       +5     
==========================================
+ Hits       175292   175303      +11     
- Misses       1121     1124       +3     
  Partials       56       56              
Impacted Files Coverage Δ
src/helpers.ts 99.10% <88.88%> (-0.15%) ⬇️
src/date.ts 100.00% <100.00%> (ø)
src/definitions/utils.ts 100.00% <100.00%> (ø)
src/fake.ts 100.00% <100.00%> (ø)
src/finance.ts 99.32% <100.00%> (-0.01%) ⬇️
src/system.ts 96.48% <100.00%> (+0.10%) ⬆️
src/vendor/unique.ts 93.54% <0.00%> (-1.62%) ⬇️

prisis
prisis previously approved these changes Mar 15, 2022
src/helpers.ts Outdated Show resolved Hide resolved
test/fake.spec.ts Outdated Show resolved Hide resolved
if (Array.isArray(source)) {
const set = new Set(source);
const set = new Set<T>(source);
const array = Array.from(set);
return this.faker.helpers.shuffle(array).splice(0, length);
Copy link
Member

Choose a reason for hiding this comment

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

Just a note for a later PR, IMO we should use slice instead of splice here 🤔

@Shinigami92 Shinigami92 requested a review from prisis March 15, 2022 17:14
@Shinigami92 Shinigami92 merged commit 5cb74b1 into main Mar 15, 2022
@Shinigami92 Shinigami92 deleted the chore/fix-warnings branch March 15, 2022 18:16
@ST-DDT ST-DDT mentioned this pull request Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: chore PR that doesn't affect the runtime behavior c: feature Request for new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants