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

@co012/rpg 78 game end action #40

Merged
merged 2 commits into from
May 21, 2022
Merged

Conversation

co012
Copy link
Collaborator

@co012 co012 commented May 19, 2022

Description

Checklist

  • Included code to test these changes
  • Updated Jira

@co012 co012 requested review from kkafar, ksiek127 and mhawryluk May 19, 2022 19:08
Comment on lines +6 to +10
public GameEndAction(String description) {
this.description = description;
}


Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public GameEndAction(String description) {
this.description = description;
}
public GameEndAction(String description) {
this.description = description;
}

Comment on lines +19 to +21
} catch (IOException e) {
throw new RuntimeException(e);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't see the point of catching an exception, just to throw it again with a more general type, unless I'm missing something.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't have to catch a RuntimeException

@co012 co012 merged commit 6480673 into master May 21, 2022
@co012 co012 deleted the @co012/RPG-78_game_end_action branch May 21, 2022 19:08
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