Skip to content

Fix fatal error in core check-update command#270

Merged
thelovekesh merged 1 commit intowp-cli:mainfrom
Akash-Raj-ST:fix/check-update-fatal-error
Oct 1, 2024
Merged

Fix fatal error in core check-update command#270
thelovekesh merged 1 commit intowp-cli:mainfrom
Akash-Raj-ST:fix/check-update-fatal-error

Conversation

@Akash-Raj-ST
Copy link
Copy Markdown

Instead of returning false when no updates are found, the get_updates function returns an empty array [], ensuring consistent return type and preventing potential errors .

Fixes #267

@Akash-Raj-ST Akash-Raj-ST requested a review from a team as a code owner October 1, 2024 06:57
@thelovekesh
Copy link
Copy Markdown
Member

Thanks for the first contribution 🎉

@thelovekesh thelovekesh merged commit e3a580a into wp-cli:main Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants