Skip to content

Comments

INTERNAL: remove reverse local variable.#854

Merged
jhpark816 merged 1 commit intonaver:developfrom
brido4125:reverse/bopPosi
Dec 20, 2024
Merged

INTERNAL: remove reverse local variable.#854
jhpark816 merged 1 commit intonaver:developfrom
brido4125:reverse/bopPosi

Conversation

@brido4125
Copy link
Contributor

🔗 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