WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@sajjadhossainshohag
Copy link
Contributor

The scenario

When reviewing the FluxManager class, I noticed that the ensurePro() method directly calls InstalledVersions::isInstalled('livewire/flux-pro') to check if Flux Pro is installed, while there's already a dedicated pro() method that performs the same check.

The problem

deduplicate package check in ensurePro method

The solution

Refactor ensurePro() to call the existing pro() method instead of duplicating the package check

Fixes livewire/flux#

@joshhanley joshhanley changed the title Refactor: deduplicate package check in ensurePro method Deduplicate package check in ensurePro method Oct 12, 2025
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.

1 participant