Skip to content

Commit

Permalink
minor reformating
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
janfjohannes committed Mar 20, 2024
1 parent 120ae23 commit f003c65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lix/source-code/client/src/openRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export async function openRepository(
}

if (doLixClone) {
pending = clone({
await clone({
fs: withLazyFetching({ nodeishFs: rawFs, verbose, description: "clone" }),
http: makeHttpClient({
verbose,
Expand Down Expand Up @@ -310,9 +310,7 @@ export async function openRepository(
setErrors((previous) => [...(previous || []), newError])
})

await pending
}

// delay all fs and repo operations until the repo clone and checkout have finished, this is preparation for the lazy feature
function delayedAction({ execute }: { execute: () => any }) {
if (pending) {
Expand Down

0 comments on commit f003c65

Please sign in to comment.