Always return a result from database command methods#360
Open
brkn wants to merge 1 commit intohanami:mainfrom
Open
Always return a result from database command methods#360brkn wants to merge 1 commit intohanami:mainfrom
brkn wants to merge 1 commit intohanami:mainfrom
Conversation
3a2f547 to
84c4b55
Compare
Contributor
|
I’m in favor of the motivation here, to reduce type-checking results by making them work consistently. But I’m not sure I like the specific solution of faking shell command output. I don’t think we should be capturing exit codes for executions that didn’t happen. |
Contributor
Author
|
Thank you for the comment.
To understand it better, which one you don't like: A) These database methods (like B) These database methods (like |
84c4b55 to
4255136
Compare
4255136 to
785520a
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Return
SystemCall::Resultobjects from guard checks at database util class methods instead of primitivetruevalues. This removes the need for checking the object of the returned.Replace
FailureStruct with a class to remove warnings at test outputs.Failure constant redefined