-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update product website, UG and minor code refactoring #98
Update product website, UG and minor code refactoring #98
Conversation
Codecov Report
@@ Coverage Diff @@
## master #98 +/- ##
============================================
+ Coverage 67.40% 67.49% +0.09%
- Complexity 448 451 +3
============================================
Files 80 80
Lines 1448 1449 +1
Branches 152 152
============================================
+ Hits 976 978 +2
+ Misses 425 423 -2
- Partials 47 48 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
int pagesRead = book.getPagesRead(); | ||
int totalPages = book.getTotalPagesNumber(); | ||
return (int) (((float) pagesRead / totalPages) * 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it will be better to immediately cast the float type upon instantiation instead of typecasting at Ln36?
Else, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion! I've made the necessary changes
Some minor additions and fixes for #92
DetailedBookCard