Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkim9881 committed Feb 12, 2025
1 parent 3a7ebdf commit 35ab2c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ValidateCodeActionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function ValidateCodeActionForm({
isInitialized.current = true;
sendValidateCode();
}
// eslint-disable-next-line rulesdir/prefer-early-return
return () => {
// We need to run clearError in cleanup function to use as onClose function.
// As 'useEffect cleanup function' runs whenever a dependency is called, we need to put clearError() in the if condition.
Expand Down

0 comments on commit 35ab2c8

Please sign in to comment.