Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Caden Marinozzi committed Feb 15, 2024
1 parent 278dc54 commit 10b80e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Sraipt TODO

- Improve generation prompt
- Add support for arrow functions
- Improve context to use similarity
- Handle AI response that includes more than just the code
- Performance benchmarks
Expand All @@ -10,3 +9,4 @@
- Create module extender method for plug-and-play
- Create a logs file
- Add support for more webpack frameworks (Next, etc)
- Add support for locally hosted models
2 changes: 1 addition & 1 deletion src/modules/codeProcessing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const isTypeScriptCode = (source: string): boolean => {
plugins: ['@babel/plugin-syntax-jsx'],
});

return !!!AST;
return !AST;
} catch (error) {
return true;
}
Expand Down

0 comments on commit 10b80e3

Please sign in to comment.