summaryrefslogtreecommitdiff
path: root/source/features/clone-branch.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/clone-branch.tsx')
-rw-r--r--source/features/clone-branch.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/clone-branch.tsx b/source/features/clone-branch.tsx
index b913f2fa..a3933287 100644
--- a/source/features/clone-branch.tsx
+++ b/source/features/clone-branch.tsx
@@ -69,7 +69,8 @@ async function cloneBranch({delegateTarget: cloneButton}: delegate.Event<MouseEv
);
}
-function init(): void | false {
+async function init(): Promise<void | false> {
+ await api.expectToken();
const deleteIcons = select.all([
'branch-filter-item-controller .octicon-trashcan', // Pre "Repository refresh" layout
'branch-filter-item .octicon-trashcan'