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

refactor: use unwrap_or_else #2167

Merged
merged 1 commit into from
Mar 11, 2023
Merged

Conversation

tuchg
Copy link
Contributor

@tuchg tuchg commented Mar 11, 2023

Summary

Making code more concise and readable, while also making it more functional.

use unwrap_or_else to replace if let

Related issue (if exists)

Types of changes

  • Docs change / Dependency upgrade
  • Bug fix
  • New feature / Improvement
  • Refactoring
  • Breaking change

Checklist

  • I have added changeset via pnpm run changeset.
  • I have added tests to cover my changes.

@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2023

⚠️ No Changeset found

Latest commit: 2d7c95b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@h-a-n-a h-a-n-a changed the title chore: use unwrap_or_else refactor: use unwrap_or_else Mar 11, 2023
@h-a-n-a h-a-n-a merged commit 492165a into web-infra-dev:main Mar 11, 2023
@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Mar 11, 2023

Thank you.

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.

None yet

3 participants