Skip to content

build: remove redundant await from readFileSync calls#1379

Merged
antongolub merged 1 commit intogoogle:mainfrom
Ayoub-Mabrouk:fix/remove-incorrect-await-readfilesync
Feb 28, 2026
Merged

build: remove redundant await from readFileSync calls#1379
antongolub merged 1 commit intogoogle:mainfrom
Ayoub-Mabrouk:fix/remove-incorrect-await-readfilesync

Conversation

@Ayoub-Mabrouk
Copy link
Copy Markdown
Contributor

Remove incorrect await keyword from fs.readFileSync() calls in build-versions.mjs and build-tests.mjs. readFileSync is synchronous and doesn't return a Promise, so await is invalid syntax.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Dec 30, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Ayoub-Mabrouk
Copy link
Copy Markdown
Contributor Author

Hello @antonmedv 👋
I was wondering if you had a chance to look at my PR.
I’d really appreciate your feedback when you have time. Thanks!

@Ayoub-Mabrouk Ayoub-Mabrouk force-pushed the fix/remove-incorrect-await-readfilesync branch 3 times, most recently from 0831e86 to 8bd0bff Compare February 3, 2026 12:59
@antonmedv antonmedv requested a review from antongolub February 3, 2026 13:08
@antonmedv
Copy link
Copy Markdown
Collaborator

PTAL @antongolub

@antongolub antongolub changed the title fix(build): remove incorrect await from readFileSync calls build: remove redundant await from readFileSync calls Feb 23, 2026
Copy link
Copy Markdown
Collaborator

@antongolub antongolub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert test/export.test.js‎ and package-lock.json changes. The rest is fine.

@Ayoub-Mabrouk Ayoub-Mabrouk force-pushed the fix/remove-incorrect-await-readfilesync branch from 8bd0bff to b455445 Compare February 27, 2026 18:22
@Ayoub-Mabrouk
Copy link
Copy Markdown
Contributor Author

Revert test/export.test.js‎ and package-lock.json changes. The rest is fine.

Done.

@antongolub antongolub merged commit ff5effa into google:main Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants