fix: rename local sourceControlProvider to hostingProvider to avoid shadowing outer function

Applied via @cursor push command
This commit is contained in:
Cursor Agent authored and Julius Marminge committed 2026-05-02 14:22:14 -07:00
1 parent 083fa715bf
commit 4b1daeea5b
1 file changed
+2 -2
+2 -2
View File
@@ -699,13 +699,13 @@ export const makeGitManager = Effect.fn("makeGitManager")(function* () {
.pipe(
Effect.catchIf(isNotGitRepositoryError, () => Effect.succeed(nonRepositoryStatusDetails)),
);
const sourceControlProvider = details.isRepo
const hostingProvider = details.isRepo
? yield* resolveHostingProvider(cwd, details.branch)
: null;
return {
isRepo: details.isRepo,
...(sourceControlProvider ? { sourceControlProvider } : {}),
...(hostingProvider ? { sourceControlProvider: hostingProvider } : {}),
hasPrimaryRemote: details.hasOriginRemote,
isDefaultRef: details.isDefaultBranch,
refName: details.branch,