-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Get rid of a lot of error return values #3890
Merged
Merged
Commits on Sep 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5659f1f - Browse repository at this point
Copy the full SHA 5659f1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b91beb6 - Browse repository at this point
Copy the full SHA b91beb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5446683 - Browse repository at this point
Copy the full SHA 5446683View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8edcd71 - Browse repository at this point
Copy the full SHA 8edcd71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8302575 - Browse repository at this point
Copy the full SHA 8302575View commit details -
Fix a lock that is held too long
I can only guess, but I think this was a typo (or a copy-paste-o) when this code was written. It was introduced in 55af07a, and I think the defer was kept by accident; if it had been on purpose, then the statement would have been put right after the Lock call.
Configuration menu - View commit details
-
Copy full SHA for 072b465 - Browse repository at this point
Copy the full SHA 072b465View commit details -
Configuration menu - View commit details
-
Copy full SHA for 371998e - Browse repository at this point
Copy the full SHA 371998eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f0182f - Browse repository at this point
Copy the full SHA 6f0182fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b15a1c7 - Browse repository at this point
Copy the full SHA b15a1c7View commit details -
Remove return value of Alert/Confirm/Prompt
This might seem controversial; in many cases the client code gets longer, because it needs an extra line for an explicit `return nil`. I still prefer this, because it makes it clearer which calls can return errors.
Configuration menu - View commit details
-
Copy full SHA for d4ef8e5 - Browse repository at this point
Copy the full SHA d4ef8e5View commit details -
Remove return value of OpenCommitMessagePanel
Similar to the previous commit: in 100% of the call sites we now need an extra `return nil`. Nevertheless, I still prefer it this way.
Configuration menu - View commit details
-
Copy full SHA for 064fae4 - Browse repository at this point
Copy the full SHA 064fae4View commit details
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.