• Kogasa@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    The assignment syntax is too close to comparison, which is what is more typical in that position. I would recommend

    const bool _isFeatureEnabled = false;
    if (_isFeatureEnabled && ...)
    

    if not a proper feature flag (or just remove the code).