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

Fixing bug on 'very minor' input #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Svynct
Copy link

@Svynct Svynct commented Oct 11, 2023

When running the program with the "very minor" richter scale, it wouldn't fall into the "very minor" case since it only compared with os.Args[1] when in fact we need to concatenate os.Args[1] and os.Args[2] to retrieve the "very minor" command. This commit fixes this error by adding an additional if clause to check for this case.

When running the program with the "very minor" richter scale, it wouldn't fall into the "very minor" case since it only compared with os.Args[1] when in fact we need to concatenate os.Args[1] and os.Args[2] to retrieve the "very minor" command. This commit fixes this error by adding an additional if clause to check for this case.
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

Successfully merging this pull request may close these issues.

1 participant