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: use boolean probability instead of magic numbers #1540

Merged
merged 2 commits into from
Nov 9, 2022

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Nov 7, 2022

Simplifies the code a bit by using boolean with probability instead of matching magic numbers.
The probability remains the same as the previous implementation ([0,4] === 0 => 1/5 => 0.2).

@ST-DDT ST-DDT added c: chore PR that doesn't affect the runtime behavior p: 1-normal Nothing urgent m: git Something is referring to the git module labels Nov 7, 2022
@ST-DDT ST-DDT requested a review from a team November 7, 2022 22:38
@ST-DDT ST-DDT requested a review from a team as a code owner November 7, 2022 22:38
@ST-DDT ST-DDT self-assigned this Nov 7, 2022
@ST-DDT ST-DDT added the s: on hold Blocked by something or frozen to avoid conflicts label Nov 7, 2022
@ST-DDT
Copy link
Member Author

ST-DDT commented Nov 7, 2022

On hold to avoid conflict with #1539

@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #1540 (d9b9606) into next (99b6fb2) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #1540   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files        2214     2214           
  Lines      238758   238758           
  Branches     1015     1015           
=======================================
  Hits       237902   237902           
  Misses        835      835           
  Partials       21       21           
Impacted Files Coverage Δ
src/modules/git/index.ts 100.00% <100.00%> (ø)

@ST-DDT ST-DDT removed the s: on hold Blocked by something or frozen to avoid conflicts label Nov 8, 2022
@ST-DDT
Copy link
Member Author

ST-DDT commented Nov 8, 2022

#1539 was merged, so this is no ready fore review and merge.

@ST-DDT ST-DDT requested a review from a team November 8, 2022 19:59
@Shinigami92 Shinigami92 merged commit f1f4ad4 into next Nov 9, 2022
@Shinigami92 Shinigami92 deleted the chore/git-commitEntry-use-boolean-probability branch November 9, 2022 16:49
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 m: git Something is referring to the git module p: 1-normal Nothing urgent
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants