| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-authored-by: antonmedv <141232+antonmedv@users.noreply.github.com>
Co-authored-by: antonmedv <141232+antonmedv@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Issue
The Abs() function in builtin/lib.go contained unreachable conditional branches for unsigned integer types. Unsigned integers cannot be negative, yet the code checked if x < 0 before returning.
This pattern was repeated for uint, uint8, uint16, uint32, and uint64.
Changes
Result
Eliminates 20 lines of dead code, improves clarity, and removes a potential source of confusion for maintainers.
Original prompt💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.