Skip to content

fix: remove debug print statement from ApiService#468

Merged
andoriyaprashant merged 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:fix/remove-print-api-service
Jun 3, 2026
Merged

fix: remove debug print statement from ApiService#468
andoriyaprashant merged 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:fix/remove-print-api-service

Conversation

@adityashirsatrao007

Copy link
Copy Markdown
Contributor

Description

Removes a debug print() statement from production code in ApiService.

Problem

In lib/services/ApiService.dart, line 33 contained:

print("status is" + allOrg);

This leaks the internal API URL to the console in production builds, which:

  • Degrades performance
  • Can expose internal implementation details
  • Violates linting standards (avoid_print lint rule)

Fix

Removed the print() statement entirely.

Related Issue

Fixes #417 (Improved linting and code quality)

Type of Change

  • Bug fix (removing debug code from production)

Checklist

  • Tests pass
  • No lint warnings introduced
  • Code follows project style guidelines

Remove production print() statement in ApiService.getOrgByYear()
that leaked the API URL to the console. This is a code quality
improvement as part of #417.

Before: print("status is" + allOrg);
Copilot AI review requested due to automatic review settings May 30, 2026 10:58
@netlify

netlify Bot commented May 30, 2026

Copy link
Copy Markdown

Deploy Preview for aquamarine-kheer-83feda failed. Why did it fail? →

Name Link
🔨 Latest commit fd3ea8d
🔍 Latest deploy log https://app.netlify.com/projects/aquamarine-kheer-83feda/deploys/6a1ac2cb973360000893b268

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! We'll review it as soon as possible.

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes a debug log from the API service to reduce noisy console output during requests.

Changes:

  • Removed a print statement that logged the constructed request URL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andoriyaprashant
andoriyaprashant merged commit 3aa8ba9 into andoriyaprashant:main Jun 3, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Improved linting and code quality

3 participants