Skip to content

Conversation

@strug
Copy link
Contributor

@strug strug commented Jan 20, 2026

No description provided.

key = "#root.target.buildInspectUserCacheKey(#context)"
)
public BlockedShops inspectUser(InspectUserContext context) throws InvalidRequest, TException {
if (context == null || context.getShopList() == null || context.getShopList().isEmpty()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

можно укоротить условие для читаемости CollectionUtils.isEmpty(context.getShopList())

)
public BlockedShops inspectUser(InspectUserContext context) throws InvalidRequest, TException {
if (context == null || context.getShopList() == null || context.getShopList().isEmpty()) {
return new BlockedShops().setShopList(Collections.emptyList());
Copy link
Collaborator

Choose a reason for hiding this comment

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

мб здесь какой-нибудь warn или debug лог отписать, что пустота пришла?

.filter(entry -> isDeclineResult(entry.getValue()))
.map(AbstractMap.SimpleEntry::getKey)
.collect(Collectors.toList());
return new BlockedShops().setShopList(blockedShops);
Copy link
Collaborator

Choose a reason for hiding this comment

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

мб и тут дебаг лог с ответом добавим?

@strug strug merged commit 2a66bfc into master Jan 21, 2026
10 checks passed
@strug strug deleted the ft/add-user-check branch January 21, 2026 14:53
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