+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

chore(rome_js_analyze): better use of Option #3434

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

ematipico
Copy link
Contributor

Summary

In the recent PRs there were few places where we did use the try operator, but in these places it wasn't explicit enough why we were using it.

I changed the code to use is_none and early return.

Test Plan

The CI should work

@netlify
Copy link

netlify bot commented Oct 17, 2022

Deploy Preview for rometools ready!

Name Link
🔨 Latest commit 24f6270
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/634d6c3c50924a00094a2992
😎 Deploy Preview https://deploy-preview-3434--rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ematipico ematipico temporarily deployed to netlify-playground October 17, 2022 08:37 Inactive
@github-actions
Copy link

github-actions bot commented Oct 17, 2022

@ematipico
Copy link
Contributor Author

Of course clippy is kind enough to tell me that I could use the try operator... -_-

@ematipico ematipico force-pushed the chore/better-use-of-option branch from f729a5b to 24f6270 Compare October 17, 2022 14:52
@ematipico ematipico temporarily deployed to netlify-playground October 17, 2022 14:52 Inactive
@ematipico ematipico merged commit 1283ace into main Oct 18, 2022
@ematipico ematipico deleted the chore/better-use-of-option branch October 18, 2022 13:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载