Skip to content
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

LibWeb: Merge NavigationParams' Empty and NullWithError into NullOrError #2330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dlarocque
Copy link
Contributor

To check whether a NavigationParams is null, we have to check whether it's Empty or NullWithError. Instead, we can merge both of these possible variants into an optional NullOrError. If NullOrError has no value it's null, otherwise it contains the error message that is shown to the user when there's a navigation error.

@ladybird-bot
Copy link
Collaborator

Hello!

One or more of the commit messages in this PR do not match the Ladybird code submission policy, please check the lint_commits CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.

@circl-lastname
Copy link
Contributor

Now has conflicts

To check whether a NavigationParams is null, we have to check whether
it's `Empty` or `NullWithError`. Instead, we can merge both of these
possible variants into an optional error. If `NullOrError` has no
value it's null, otherwise it contains an error message.
@dlarocque
Copy link
Contributor Author

Now has conflicts

Thanks- conflicts resolved now

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.

3 participants