Skip to content

Commit

Permalink
isMetaMaskRepository -> createdAutomatically
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Nov 14, 2023
1 parent 7a88546 commit 0afaf74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/establish-metamask-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type MetaMaskRepository = ConfirmedRepository & {
* Information about a repository we know exists on the filesystem.
*/
export type ExistingRepository = ConfirmedRepository & {
isKnownMetaMaskRepository: boolean;
createdAutomatically: boolean;
};

/**
Expand Down Expand Up @@ -81,7 +81,7 @@ export async function establishMetaMaskRepository({
existingRepository.directoryPath,
);

if (existingRepository.isKnownMetaMaskRepository) {
if (existingRepository.createdAutomatically) {
await requireDefaultBranchSelected(existingRepository);

const updatedLastFetchedDate = await ensureDefaultBranchIsUpToDate(
Expand Down Expand Up @@ -168,7 +168,7 @@ async function ensureRepositoryExists({
...branchInfo,
shortname: repositoryShortname,
directoryPath: repositoryDirectoryPath,
isKnownMetaMaskRepository,
createdAutomatically: isKnownMetaMaskRepository,
};
}

Expand Down

0 comments on commit 0afaf74

Please sign in to comment.