Skip to content

Remove incorrect await from synchronous fs functions#2659

Closed
ryantsou wants to merge 1 commit intoDeepSourceCorp:masterfrom
ryantsou:fix/remove-await-readfilesync
Closed

Remove incorrect await from synchronous fs functions#2659
ryantsou wants to merge 1 commit intoDeepSourceCorp:masterfrom
ryantsou:fix/remove-await-readfilesync

Conversation

@ryantsou
Copy link
Copy Markdown

@ryantsou ryantsou commented Apr 3, 2026

This PR removes incorrect await keywords from synchronous file system operations in sync.js.

The await keyword should not be used with fs.statSync() and fs.readFileSync() as these are synchronous functions that do not return Promises.

Changes:

  • Remove await from fs.statSync() call
  • Remove await from fs.readFileSync() call

The await keyword should not be used with fs.statSync() and
fs.readFileSync() as these are synchronous functions that do not
return Promises. This was causing unnecessary awaits in the code.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

@ryantsou is attempting to deploy a commit to the DeepSource Team on Vercel.

A member of the Team first needs to authorize it.

@jai-deepsource
Copy link
Copy Markdown
Contributor

Closing. This change was not requested and does not address an open issue. Please only submit PRs for work that has been discussed with maintainers or addresses an existing issue.

@ryantsou ryantsou deleted the fix/remove-await-readfilesync branch April 11, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants