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

Remove the redundant code, also fix the misleading comment in the code #3

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

Sanket-0510
Copy link
Contributor

After PR #2 the else condition code becomes redundant this PR fixes this. Also the comment is misleading in my view hence fixed that also.

dummy.cpp Outdated
@@ -145,7 +145,6 @@ int main(int argc, char *const argv[]) {
if (options.useFixed) {
program = P4Dummy::parseDummyP4(options);
} else {
options.setInputFile();
if (::errorCount() > 0) {
Copy link
Owner

Choose a reason for hiding this comment

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

Okay, lets move this check outside of the else statement.

@fruffy fruffy merged commit 9ebe695 into fruffy:master Mar 17, 2024
1 check passed
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.

2 participants