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

Coding problem #185

Open
rechmbrs opened this issue Jan 4, 2020 · 3 comments
Open

Coding problem #185

rechmbrs opened this issue Jan 4, 2020 · 3 comments

Comments

@rechmbrs
Copy link

rechmbrs commented Jan 4, 2020

I believe that line: pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '
should be: pad_character = ph.pad_char ? (ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1)) : ' '

Missing parenthesis.

RONC

@alexei
Copy link
Owner

alexei commented Jan 6, 2020

Hey @rechmbrs, thanks for your input. If you think that line is erroneous, please provide a test or two as proof.

@rechmbrs
Copy link
Author

rechmbrs commented Jan 6, 2020 via email

@alexei
Copy link
Owner

alexei commented Jan 13, 2020

You can open a PR, though the current linter doesn't mind that line

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

No branches or pull requests

2 participants