-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: The current API lets callers construct a ParseURL, and hopes they check valid. Remove that constructor and replace with static methods: `Expected<ParseURL, folly::Unit> parseURL(...)` Forces the caller to check hasValue/hasError, or risk 'BadExpectedAccess exception' `ParseURL parseURLMaybeInvalid(...)` Gives the caller an explicit hint that they should check valid unless they know what they are doing. Reviewed By: mjoras Differential Revision: D30400896 fbshipit-source-id: 58ca5962040a66d77b9c9502c180150be790218e
- Loading branch information
1 parent
f66f013
commit 17bfadb
Showing
5 changed files
with
108 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters