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

Fix zero-padding logic on minutes #1439

Closed
wants to merge 1 commit into from

Conversation

BenMusch
Copy link

Fixes #1438

The if statement was testing the opposite of the case it was supposed to test. Changing > to <= would fix the issue, but there's no reason to even have the conditional to begin with, since zeroPad(2, 10) === '10'

Fixes webtorrent#1438

The if statement was testing the opposite of the case it was supposed to test. Changing `>` to `<=` would fix the issue, but there's no reason to even have the conditional to begin with, since `zeroPad(2, 10) === '10'`
@welcome
Copy link

welcome bot commented Jul 21, 2018

🙌 Thanks for opening this pull request! You're awesome.

@BenMusch
Copy link
Author

Hmm nevermind, I think I misunderstood the logic here. Will take a second look

@BenMusch BenMusch closed this Jul 21, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Low-priority] Minutes section of hour-long times formatted without leading zero
1 participant