Skip to content

fix(util): update getManifest return type and handle empty response #1410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

jssuttles
Copy link
Contributor

Removing the word undefined from the stored data is a weird choice. This changes that.

@ayushmanchhabra
Copy link
Collaborator

ayushmanchhabra commented Jul 4, 2025

if (data !== undefined) {

This also needs to be updated, probably why tests are failing

@ayushmanchhabra
Copy link
Collaborator

Also what is being fixed here? Is this semantic or just a presentational change?

@jssuttles
Copy link
Contributor Author

I would think that running code like the following could lead to bugs.

var chunks = undefined;
chunks += '{"data":"stuff"}'; // undefined{"data":"stuff"}
if (chunks !== undefined) chunks = chunks.slice(9); // {"data":"stuff"}

So, this is a small refactor.

@ayushmanchhabra ayushmanchhabra merged commit c287c07 into nwutils:main Jul 7, 2025
3 checks passed
ayushmanchhabra pushed a commit that referenced this pull request Jul 8, 2025
🤖 I have created a release *beep* *boop*
---


##
[4.13.16](v4.13.15...v4.13.16)
(2025-07-07)


### Bug Fixes

* **util:** update getManifest return type and handle empty response
([#1410](#1410))
([c287c07](c287c07))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@jssuttles jssuttles deleted the remove-undefined branch July 9, 2025 20:45
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.

2 participants