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

INTERNAL: remove reverse local variable. #854

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

brido4125
Copy link
Collaborator

🔗 Related Issue

https://github.com/jam2in/arcus-works/issues/656

⌨️ What I did

reverse 변수 제거 후, 인자 값으로 불리언 처리

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

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

리뷰 완료

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

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

리뷰 완료

BTreeGetByPosition get = new BTreeGetByPosition(order, from, to);
boolean reverse = from > to;
return asyncBopGetByPosition(key, get, reverse, collectionTranscoder);
return asyncBopGetByPosition(key, new BTreeGetByPosition(order, from, to), collectionTranscoder);
Copy link
Collaborator

Choose a reason for hiding this comment

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

기존과 같이 2 line으로 읽기에 편한 것 같습니다.

BTreeGetByPosition get = new BTreeGetByPosition(order, from, to);
return asyncBopGetByPosition(key, get, collectionTranscoder);

@jhpark816 jhpark816 merged commit b0d8af8 into naver:develop Dec 20, 2024
2 checks passed
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