Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information