From 637b6a6b9dc549b894d49ed9a17ff8e0bb0c19bd Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Thu, 12 Dec 2024 11:22:55 -0800 Subject: [PATCH] stackEditState: rename getRevs to joinRevs Summary: The new name better reflects what it does. Reviewed By: muirdm Differential Revision: D67060051 fbshipit-source-id: 75390cc104a41db7d7e498bbf271c57cfe0063f9 --- addons/isl/src/stackEdit/ui/stackEditState.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/isl/src/stackEdit/ui/stackEditState.ts b/addons/isl/src/stackEdit/ui/stackEditState.ts index 7834a112ddce4..7a7d187d3d813 100644 --- a/addons/isl/src/stackEdit/ui/stackEditState.ts +++ b/addons/isl/src/stackEdit/ui/stackEditState.ts @@ -242,7 +242,7 @@ registerDisposable( clientToServerAPI.onMessageOfType('exportedStack', event => { writeAtom(stackEditState, (prev): StackEditState => { const {hashes, intention} = prev; - const revs = getRevs(hashes); + const revs = joinRevs(hashes); if (revs !== event.revs) { // Wrong stack. Ignore it. return prev; @@ -309,7 +309,7 @@ export const editingStackIntentionHashes = atom< await waiter; } if (hashes.size > 0) { - const revs = getRevs(hashes); + const revs = joinRevs(hashes); clientToServerAPI.postMessage({type: 'exportStack', revs}); } set(stackEditState, { @@ -456,7 +456,7 @@ export function useStackEditState() { } /** Get revset expression for requested hashes. */ -function getRevs(hashes: Set): string { +function joinRevs(hashes: Set): string { return [...hashes].join('|'); }