Skip to content

Conversation

@enotniy
Copy link
Collaborator

@enotniy enotniy commented Jun 14, 2023

@enotniy enotniy requested a review from Robalim June 14, 2023 09:44
val firstLog = monitoringRepository.getFirstLog()
val lastLog = monitoringRepository.getLastLog()
mobileConfigRepository.listenMonitoringSection().collect { monitoring ->
mobileConfigRepository.getMonitoringSection().let { monitoring ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Зачем тут let, если возвращается ненуллабельное List ?
И абстрактно, этот пр точно нужен, учитывая, что мы в будущем перейдем на room для хранения конфига?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

нужен, логика не поменяется. поменяется только парсинг, не из prefs а из database

val firstLog = monitoringRepository.getFirstLog()
val lastLog = monitoringRepository.getLastLog()
mobileConfigRepository.listenMonitoringSection().collect { monitoring ->
mobileConfigRepository.getMonitoringSection().let { monitoring ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Зачем тут let, если возвращается ненуллабельное List ?
И абстрактно, этот пр точно нужен, учитывая, что мы в будущем перейдем на room для хранения конфига?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

да, не обязательно теперь let

@enotniy enotniy force-pushed the feature/MBX-2627 branch from bca75e6 to 60cc57a Compare June 14, 2023 11:12
@enotniy enotniy merged commit c71ac86 into develop Jun 14, 2023
@enotniy enotniy deleted the feature/MBX-2627 branch June 14, 2023 12:11
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.

3 participants