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

Get rid of a lot of error return values #3890

Merged
merged 11 commits into from
Sep 6, 2024
Merged

Commits on Sep 6, 2024

  1. Bump gocui

    And adapt client code.
    stefanhaller committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    5659f1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b91beb6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5446683 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8edcd71 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8302575 View commit details
    Browse the repository at this point in the history
  6. 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.
    stefanhaller committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    072b465 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    371998e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6f0182f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b15a1c7 View commit details
    Browse the repository at this point in the history
  10. 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.
    stefanhaller committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    d4ef8e5 View commit details
    Browse the repository at this point in the history
  11. 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.
    stefanhaller committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    064fae4 View commit details
    Browse the repository at this point in the history