Skip to content

Commit

Permalink
fix: remove GITHUB_TOKEN check from getData function
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelRajodiya committed Jan 5, 2025
1 parent 37ef4ca commit b94707f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/tools/extract-tools-github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ dotenv.config();
export async function getData(): Promise<any> {
// eslint-disable-next-line no-useless-catch
try {
if (!process.env.GITHUB_TOKEN) {
throw new Error('GITHUB_TOKEN environment variable is required');
}
const result = await axios.get('https://api.github.com/search/code?q=filename:.asyncapi-tool', {
headers: {
accept: 'application/vnd.github.text-match+json',
Expand Down

0 comments on commit b94707f

Please sign in to comment.