hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agoadvancedlemmy.worldimagemessage-square32fedilinkarrow-up1427arrow-down114
arrow-up1413arrow-down1imageadvancedlemmy.worldhairinmybellybutt@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square32fedilink
minus-squareKogasa@programming.devlinkfedilinkarrow-up1·1 year agoThe 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).
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).