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

Add package libbeat/common/cleanup #12134

Merged
merged 2 commits into from
May 9, 2019
Merged

Commits on May 9, 2019

  1. Add package libbeat/common/cleanup

    The cleanup package adds helpers for deferred optional cleanup on
    errors.
    
    For example:
    
    ```
    ok := False
    defer cleanup.IfNot(&ok, func() { ... })
    
    // continue initialization
    
    ok = True
    return // some value
    ```
    urso committed May 9, 2019
    Configuration menu
    Copy the full SHA
    3cfef48 View commit details
    Browse the repository at this point in the history
  2. Add changelog entry

    urso committed May 9, 2019
    Configuration menu
    Copy the full SHA
    040c172 View commit details
    Browse the repository at this point in the history