Skip to content

Commit

Permalink
Clean up some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaline committed Feb 24, 2024
1 parent b029cda commit 9b26d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/cli/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const execCommand = new Command()
)
.addCommand(circomspectCommand)
.hook("preAction", async (command) => {
// Store the options in globals for subcommands to access them.
const opts = command.opts();
listTags = !!opts.listTags;
tag = opts.tag;
Expand Down Expand Up @@ -95,7 +96,7 @@ export const execCommand = new Command()
rootDirectory = cwd;
sindri.logger.warn(
`No "sindri.json" file was found in or above "${cwd}", ` +
`using the current directory as the project root.`,
"using the current directory as the project root.",
);
}
rootDirectory = path.normalize(path.resolve(rootDirectory));
Expand Down
4 changes: 2 additions & 2 deletions src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function checkCommandExists(command: string): Promise<boolean> {
});

process.on("exit", (code) => {
// Command exists if exit code is 0 (success)
// Command exists if there are no errors or the exit code isn't 127.
resolve(code !== 127 && code !== null);
});
});
Expand Down Expand Up @@ -148,7 +148,7 @@ export async function execCommand(
});
}

// No way to run the command.
// There's no way to run the command.
logger?.debug(
`The "${command}" command is not available locally or in Docker.`,
);
Expand Down

0 comments on commit 9b26d45

Please sign in to comment.