fix(cli): use logical OR instead of pipe in build-type condition#250
Conversation
Line 154 used `|` (pipeline) where `||` (logical OR) was intended. The pipe caused `$DEBUG` to be silently ignored when determining whether to use Debug or Release build type. Fixes rafaeltonholo#238
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
rafaeltonholo
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the contribution!
Summary
Fixed a single-character bug on line 154 of the
s2cscript where|(pipe) was used instead of||(logical OR).Why this matters
The pipe operator causes
$DEBUGto be silently ignored. Only$VERBOSEdetermines whether the build type is Debug or Release. Setting--debugalone has no effect on the build type.Changes
s2cline 154:|to||Testing
Verified the fix matches the existing pattern on line 104 which correctly uses
||.Fixes #238
This contribution was developed with AI assistance (Claude Code).
Summary by CodeRabbit