Skip to content

Commit

Permalink
remove extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzsh committed Feb 28, 2024
1 parent 03f5b5c commit 5b9d6ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions usaco_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const problems = require('./problems.json') as { [key: string]: ProblemData };
let report = 'added problems:\n```\n';

async function addProblem(id: number) {
console.log('Adding problem ', id);
try {
const url = `https://usaco.org/index.php?page=viewproblem2&cpid=${id}`;
const response = await (await fetch(url)).text();
Expand Down Expand Up @@ -59,7 +58,7 @@ async function addProblem(id: number) {
);
return true;
} catch (error) {
console.log(error);
if (!(error instanceof TypeError)) console.log(error);
return false;
}
}
Expand Down

0 comments on commit 5b9d6ad

Please sign in to comment.