Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Заменить лайки на систему рейтинга #30
Заменить лайки на систему рейтинга #30
Changes from 13 commits
bad0cba
a9868c4
7ac9c30
d16fb10
733bf7f
479ebaf
7701e94
0163e4d
3038976
a1c1a4d
e451bbc
4a6fbe8
7f4f986
a2e7ed5
b70889d
be4cd81
22861d7
07a28a7
76e1f5b
cd71423
fbc8e26
3724014
c3967b0
8800893
09083bd
6a83488
2485552
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
findFirst() - у тебя вернет либо объект либо optional.emty() => ты можешь if наверху удалить, а if напсиать уже ниже, в виде если findFirst() пустой тогда continue, если нет, то сделай get(). Тут у тебя получается что ты 2 раза по циклу итерируешься чтобы сделать одно и тоже
upd:
по моему там вообще можно сделать getOrElse() и все в одну строчку уместить)
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.
Спасибо, так и сделал)