Skip to content

Remove dead code and tighten parameter validation#77

Open
apstndb wants to merge 1 commit into
mainfrom
chore/cleanup-deadcode
Open

Remove dead code and tighten parameter validation#77
apstndb wants to merge 1 commit into
mainfrom
chore/cleanup-deadcode

Conversation

@apstndb

@apstndb apstndb commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove the unused debuglog global and init() block from main.go.
  • Simplify enableTracing by dropping the redundant context.WithCancel layer; shutdown already uses a separate timeout context.
  • Reject NaN and ±Inf in param-file float values with clear error messages instead of passing them through to memebridge.

Part of #74.

Test plan

  • make lint
  • make test (including new param-file non-finite float tests)

Made with Cursor

Drop unused debug logging and redundant trace cancel wiring so shutdown
stays explicit, and reject non-finite floats in param files early.

Co-authored-by: Cursor <cursoragent@cursor.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes unused debug logging and simplifies tracing initialization by removing the traceCancel context cancellation function from enableTracing. Additionally, it updates parameter float formatting to explicitly reject non-finite float values (NaN and infinity) with an error, and adds corresponding unit tests to verify this behavior. I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant