Skip to content

Fix typos and optimize IP response writing#408

Merged
pmarques merged 3 commits intomasterfrom
fix/typos-and-optimizations
Jan 26, 2026
Merged

Fix typos and optimize IP response writing#408
pmarques merged 3 commits intomasterfrom
fix/typos-and-optimizations

Conversation

@pmarques
Copy link
Owner

This PR fixes typos in log messages and error responses, and optimizes JSON response writing in the IP handler.

Changes:

  1. Corrected "listenning" to "listening" in the startup log message in app/main.go.
  2. Corrected "responso" to "response" in the 501 error message in handlers/ip/ip.go.
  3. Updated tests in handlers/ip/ip_test.go to match the corrected error message.
  4. Optimized JSON writing in handlers/ip/ip.go to avoid redundant string conversion by using res.Write(b) directly.

Created with Google antigravity.
Context: These changes improve the professional appearance of the service by correcting misspellings and slightly optimize the hot path for IP responses.

@sonarqubecloud
Copy link

@pmarques pmarques merged commit b9557ed into master Jan 26, 2026
21 checks passed
@pmarques pmarques deleted the fix/typos-and-optimizations branch January 26, 2026 20:20
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