Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danimal141 committed Dec 1, 2024
1 parent 01b1b18 commit 3938286
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function handleBuild(args: string[]): Promise<void> {
let source: string;
try {
source = await Deno.readTextFile(sourceFile);
} catch (error) {
} catch (_error) {
throw new Error(`Failed to read source file: ${sourceFile}`);
}

Expand Down Expand Up @@ -125,16 +125,18 @@ async function handleBuild(args: string[]): Promise<void> {
/**
* Handles the help command
*/
async function handleHelp(args: string[]): Promise<void> {
function handleHelp(args: string[]): Promise<void> {
const command = args[0];
showHelp(command);
return Promise.resolve();
}

/**
* Handles the version command
*/
async function handleVersion(_args: string[]): Promise<void> {
function handleVersion(_args: string[]): Promise<void> {
console.log(`pgo version ${VERSION}`);
return Promise.resolve();
}

/**
Expand Down

0 comments on commit 3938286

Please sign in to comment.