genai comments #678
Annotations
3 errors
genaiscript pr-review-commit:
packages/core/src/cache.ts#L16
The function `byName` does not handle the case when `options` is undefined and `snapshot` is accessed. This could lead to a TypeError. Consider adding a check for `options` before accessing `snapshot`.
|
genaiscript pr-review-commit:
packages/core/src/comments.ts#L10
The function `commentsCache` does not have a return type. It is a good practice to always specify return types for better readability and maintainability.
|
genaiscript pr-review-commit:
packages/core/src/promptrunner.ts#L61
The variable `res` does not have a type annotation. It is a good practice to always specify types for better readability and maintainability.
|
Loading