Skip to content

Commit 568d98a

Browse files
committed
style(repl): brace GitHub search conditionals
1 parent b51cc9c commit 568d98a

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎packages/cli/src/repl/repositories/deno/provider.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ export function* replRepositoryInstallation(
312312
"the Repository in scope is not one this entry selected, so it names no checkout",
313313
);
314314
const entry = access();
315-
if (entry === undefined) throw refuse();
315+
if (entry === undefined) {
316+
throw refuse();
317+
}
316318
return yield* entry.selections.authenticate(selection, refuse).origin();
317319
});
318320
yield* useReplGitHubCheckLogs(

‎packages/cli/tests/repl-unfinished-entry.test.ts‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,9 @@ describe("joined entry diagnostics", () => {
531531
it("settles a search outside the allowlist and permits a successor", function* () {
532532
yield* API.Env.around({
533533
*env([name], next) {
534-
if (name === "XMD_WORKFLOW_GITHUB_PULL_REQUESTS") return undefined;
534+
if (name === "XMD_WORKFLOW_GITHUB_PULL_REQUESTS") {
535+
return undefined;
536+
}
535537
return yield* next(name);
536538
},
537539
});
@@ -563,8 +565,11 @@ describe("joined entry diagnostics", () => {
563565
const previous = process.env.GH_TOKEN;
564566
process.env.GH_TOKEN = token;
565567
yield* ensure(() => {
566-
if (previous === undefined) delete process.env.GH_TOKEN;
567-
else process.env.GH_TOKEN = previous;
568+
if (previous === undefined) {
569+
delete process.env.GH_TOKEN;
570+
} else {
571+
process.env.GH_TOKEN = previous;
572+
}
568573
});
569574

570575
const repository = "https://github.com/octo/project";

0 commit comments

Comments
 (0)