Skip to content

refactor: simplify isActive() by combining prepend check into return#154

Merged
freekmurze merged 1 commit intospatie:mainfrom
Ayoub-Mabrouk:chore/isActive
Apr 28, 2025
Merged

refactor: simplify isActive() by combining prepend check into return#154
freekmurze merged 1 commit intospatie:mainfrom
Ayoub-Mabrouk:chore/isActive

Conversation

@Ayoub-Mabrouk
Copy link
Copy Markdown
Contributor

The separate if condition for prepend check is redundant since we can directly return the combined boolean expression

The separate if condition for prepend check is redundant since we can directly return the combined boolean expression
@freekmurze freekmurze merged commit 2995121 into spatie:main Apr 28, 2025
8 checks passed
@freekmurze
Copy link
Copy Markdown
Member

Thanks!

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