• Peter Leitzen's avatar
    Memoize GitlabEdition.ee? and GitlabEdition.jh? · b304c357
    Peter Leitzen authored
    Prior this commit the call to Gitlab.ee? (which delegates to
    GitlabEdition.ee?) would perform the check over and over again in e.g.
    CE or if FOSS_ONLY was set.
    
    This commit replaces `||=` with `return x if defined?(x)` which also
    honors the value `false` preventing repetitive checks.
    b304c357
gitlab_edition_spec.rb 3.77 KB