Skip to content

Remove no-op await on synchronous fs calls in sync.js#2682

Open
beingsakshi wants to merge 1 commit intoDeepSourceCorp:masterfrom
beingsakshi:dev_1
Open

Remove no-op await on synchronous fs calls in sync.js#2682
beingsakshi wants to merge 1 commit intoDeepSourceCorp:masterfrom
beingsakshi:dev_1

Conversation

@beingsakshi
Copy link
Copy Markdown

Summary

  • Removed await from fs.statSync() and fs.readFileSync() calls in syncFilesUp()

Problem

fs.statSync and fs.readFileSync are synchronous functions that return values directly, not Promises. The await keyword before them is a no-op and misleading. The async await put(...) call (Vercel Blob API) remains unchanged as it is genuinely async.

Test plan

  • bun run build succeeds
  • Verified sync.js logic is unchanged (only removed misleading await keywords)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

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

A member of the Team first needs to authorize it.

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.

1 participant