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

Optimises Bundle.MediaType() (#408 follow up) #409

Merged

Commits on Sep 14, 2023

  1. Optimises Bundle.MediaType()

    Media type is an optional field and can be an empty string after looading.
    This change avoids unmarshalling every time we call MediaType() method
    by comparing to `nil`.
    
    If value is `nil` - we need to load. If anything else (even an empty string)
    we already lazy-loaded the value.
    
    Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
    m1kola committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4543bea View commit details
    Browse the repository at this point in the history